select input with given name and value from radiobutton
I’m trying to display a div tag, if the user selects option 4 from radiobuttion. I'm not an expect on javascript!
- <script type="text/javascript">
- $(document).ready(function () {
- $("#GenderInAnotherWay").hide();
- $("input[name='Gender'][value=4]").prop("checked", true);{
- $("#GenderInAnotherWay").toggle();
- });
- })
- </script>