Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: greyed out

  1. #1
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,100
    Thanks
    15
    Thanked 1 Time in 1 Post

    greyed out

    i have a textbox:

    <input type="text" class="input" tabindex="5" name="retdt" maxlength=5 size=13 onfocus="removeYear('retdt')" onblur="return checkdate('/T2AgIBE/html/calendar.html','document.fexp.retdt.value','document.fexp.rettm.value','ret',document.fexp.crdate.va lue,document.fexp.seldate.value,'retdt')" onChange="javascript:this.value=this.value.toUpperCase();">


    when my radio button is clicked:

    <input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret');">

    i want it to be greyed out (i.e background-color changed to grey!)

    possible?

    Picco

  2. #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Do you want the field to be disabled and not just changed its color?

    <input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret'); this.form.retdt.disabled=true;">

  3. #3
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,100
    Thanks
    15
    Thanked 1 Time in 1 Post
    Would this work?

    Or something along these lines....


    <input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret'); this.form.retdt.disabled=true; this.form.retdt.style="#ECECEC"">

  4. #4
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,100
    Thanks
    15
    Thanked 1 Time in 1 Post
    <input type="radio" name="oneret" value="O" onClick="disaridt();displayOpenJaw('oneret'); this.form.retdt.disabled=true; this.form.retdt.style.background='ECECEC'">


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •