Created
April 21, 2014 19:31
-
-
Save anonymous/11153698 to your computer and use it in GitHub Desktop.
SharePoint 2010/2013 jQuery get form fields in default forms
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
var fields = {}; | |
$('.ms-formbody').each(function() { | |
var name = $(this).html().match(/FieldInternalName="([A-Za-z0-9]+)"/); | |
if (name) fields[name[1]] = $(this).find('input'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment