So I have a dropdown box and when a certain option is pressed will show other fields... if not they stay hidden.
However, I also need it to check a radio button that should remain showing.
Right now I have
- <script type="text/javascript">
- $(document).ready(function(){
- $(".dnuHide").hide();
- $(".dnuHide input").attr("disabled","disabled");
- // If option Other is selected for institution type, show text field for Other
- $("#region").change(function() {
- var val = $(this).val();
- $(".dnuHide input").attr("disabled",(val=="DNU")?"":"disabled");
- (val=="DNU")?$(".dnuHide").show():$(".dnuHide").hide()
- });
- });
- </script>
how would I modify that so I can also have ()Option 1 (*)Option 2 (already checked) change to (*)Option 1 ()Option 2