Tris, Here's a VBScript solution that toggles your div... <html> <head> <script language ="vbscript"> function hideIt1() if document.getElementById("select1").value = "id" then document.getElementById("divReq2").style.visibility = "visible" 'msgbox "Working" else document.getElementById("divReq2").style.visibility = "hidden" end if end function </script> </head> <body> <form name="searchform" method="post" action="#" id="searchform"> <select name="select1" onchange="hideIt1()" id="Select1"> <option value=""></option> <option value="id">ID</option> <option value="bu">BU</option> </select> <div id="divReq2" style="visibility: hidden;"> <b>ID No:</b> <br> <select name="Select2" id="Select2"> <option value=""></option> <option value="9512">9512</option> <option value="9513">9513</option> </select> </div> </form> </body> </html>
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 10:44 AM To: [EMAIL PROTECTED] Subject: [wdvltalk] Stupid JavaSCript... Below is some code that I wanna be able to select 'id' fromt he first selection box, and have that reveal a hidden layer... It should work as far aaws I can tell, but it doesn't, so what do I know...? ;-) Any ideas. ____ • The WDVL Discussion List from WDVL.COM • ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.