having a checkbox with the same name as a hidden field prevented the value from being evaluated. This was solved by putting the script directly into the onclick method.
onclick=" if (this.checked == true) { document.getElementById('${recordType.name}Box').style.display='block'; } else { document.getElementById('${recordType.name}Box').style.display='none'; }" This forced me to define a hidden area for all the properties, but that was easier than investing more time. --- Norris Shelton <[EMAIL PROTECTED]> wrote: > Dang it. This is not going to work for me. I have a check > box. > If the check box is checked, I have some javascript looking > for > the click event. If the check box has a .checked = true. I > change div's display value to block, else to none. So, you > check the check box and some radio buttons show up, else they > disappear. > > If I put the hidden field, then the javascript returns an > undefined value. Any ideas on how to solve this. Here is > what > the html looks like: > > <input type="checkbox" name="recordTypebooking" value="true" > checked="checked" onclick="javascript:bookingBoxDisplay();"> > Bookings <br /> > <input type="hidden" name="recordTypebooking" value="false"> > > > <script type="text/javascript" language="JavaScript"> > <!-- > function bookingBoxDisplay(){ > if (document.searchNameForm.recordTypebooking.checked) { > > document.getElementById('bookingBox').style.display='block'; > } else { > > document.getElementById('bookingBox').style.display='none'; > } > } > // --> > </script> > > <span id="bookingBox" class="leftPad15" > style="display:block;"> > <input type="radio" name="recordTypebookingValue" > value="all" > checked="checked"> All <br /> > <input type="radio" name="recordTypebookingValue" > value="incarcerated"> Incarcerated Only > </span> > snipped... ===== Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]