Last active
February 11, 2017 19:58
-
-
Save shawnsandy/7b4657e022180098a62cbc466db973c6 to your computer and use it in GitHub Desktop.
Check form for fields/elements with required class.
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
$("form").each(function() { | |
var inputs = $(this).find(".required"); | |
$(inputs).each(function(){ | |
var val = $(this).val(); | |
console.log(val); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment