Created
May 9, 2011 00:28
-
-
Save michaelminter/961845 to your computer and use it in GitHub Desktop.
JQuery : Show or hide other page elements based on form selection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
checkCollege(); | |
$("#prospect_grad_before_2010").change(function(){ | |
checkCollege(); | |
}); | |
}); | |
function checkCollege(){ | |
($("#prospect_grad_before_2010").val() == "yes") ? $(".field_row_college_after_hs:first").show() : $(".field_row_college_after_hs:first").hide(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment