Hello,
I want that a <div> element will show when yes is selected and when no it should be hidden.
For show and hind i will use the functions from the jQuery UI. But I don't find a way to call the hide / show function when the selection change.
The radio selection:
- <input type="radio" name="lang_anz" value="1"> Yes<br>
- <input type="radio" name="lang_anz" value="0" checked="checked"> No<br>
When I understand the documentation I can request the current value from the radio with:
- <script type="javascript">
- $('input:radio[name=lang_anz]:checked').val();
- </script>
But how i can now call the show / hide function when I change the selection?