Created
August 11, 2017 10:24
-
-
Save gotoark/10868f2581503d82662c0138f2bd5c0a to your computer and use it in GitHub Desktop.
Dependent Drop Downs JS Ref for Spring JSP
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
//Add Hidden Value | |
<form:input path="preDist" type="hidden" maxlength="50" id="temppreDist" /> | |
<script> | |
jQuery(document).ready(function() { | |
//Assign Dependent Drop Downs | |
assignDependentDropDowns(); | |
}); | |
function assignDependentDropDowns(){ | |
setTimeout(function(){ | |
$('select[name="preDist"]').val($("#temppreDist").val()); | |
}, 1000); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment