
Answer
The HTML Code <div class=”col-md-5″> Select Discipline <select id=”groups” class=”form-control” name=”discipline” required=””> <option disabled=”disabled” selected=”selected”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.js" ></script> </head> <body> No <input type="radio" name="answer" checked="checked" value="no"/> Yes <input type="radio" name="answer" value="yes"/> Other <input type="radio" name="answer" value="other"/> <input style="display:none;" type="text" name="otherAnswer" id="otherAnswer"/> <script> $("input[type='radio']").change(function(){ if($(this).val()=="other") { $("#otherAnswer").show(); } else { $("#otherAnswer").hide(); $('#otherAnswer').val(''); } }); </script> </body> </html> |
Use this code. This code is working fine..
Sending an email using a form (ajax, jquery Lib and PHP) Check out the demo
Methods to set Proxy Settings on Weblogic Server We can enable proxy on the Oracle
Show hide input fields when radio button is selected You can do it with a
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |