Login
...or Sign up
Home
Search
Search Code Snippets
Search People
Display hidden div if option is selected
//If select option "Selected Text" is selected, display div2. $("#div").change(function() { if (($("option:selected", $(this)).attr("value")=="Selected Text")) { $("#div2:hidden").show(); } else { $("#div2:visible").hide(); } });
Score: 0/10
Would you like to comment?
Sign up
for a free account or
sign in
(if you are already a member).
URL:
Embed:
Uploaded on 1/21/2010 4:01:38 PM
by
landonmiller
Programming Language:
javascript
Tags:
forms
jQuery
Viewed 177 times
Help
Help by email
What is Naslu?
|
About Naslu
|
Contact
|
Terms of Use
|
Downloads
|
Webprogramacion.com
|
Blog
|
Top
Links
Select language:
Español
|
English
© 2009 naslu.com