Created
February 1, 2018 17:41
-
-
Save silasrm/19590bf51f3886d67a4a7f98359951af to your computer and use it in GitHub Desktop.
Get fields from form
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
$('#requerimentoCurriculo input, #requerimentoCurriculo select').each( | |
function(index){ | |
var input = $(this); | |
console.log('Name: ' + input.attr('name') + ' | Type: ' + (!!input.attr('type') ? input.attr('type') : 'select') + ' | Value: ' + input.val()); | |
} | |
); | |
$('#requerimento input, #requerimento select').each( | |
function(index){ | |
var input = $(this); | |
console.log('Name: ' + input.attr('name') + ' | Type: ' + (!!input.attr('type') ? input.attr('type') : 'select') + ' | Value: ' + input.val()); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment