show div depending on select option
问题 Oh help, I've tried it a million different ways yet it still does not work: If you select update or final from a select/option box, it should show the div that has an input field in it. It only does what the default shows in the switch statement. Of course, it's only after a selection is made that I want it to determine whether it shows the input field or not. in head section... $(document).ready(function(){ $('#needfilenum').hide(); var optionValue = $("#needtoshow").val(); switch