| Issue 210: | QUESTION : Can i use nyrmodal to show Hidden HTML DOM Element using a dropdown combo box? | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
I would like to display hidden html dom element using nyromodal everytime onchange is triggered in the dropdowon select box... would it be possible? sample code would be greatly appreciated. Thanks and more power. |
||||||||
for sure you can do it. here is a quick sample: <select id="mySel"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> <div id="content" style="display: none"> Here is my hidden content </div> <script type="text/javascript"> $(function() { $('#mySel').change(function() { $.nyroModalManual({ url: '#content' }); }); }); </script>