Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*! jQuery script to hide certain form fields */
- $(document).ready(function() {
- //Hide the field initially
- $("#hide1").hide();
- //Show the text field only when the third option is chosen - this doesn't
- $('#awesome').change(function() {
- if ($("#awesome").val() == "Nope") {
- $("#hide1").show();
- }
- else {
- $("#hide1").hide();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement