Created
November 6, 2012 09:46
-
-
Save vgrem/4023740 to your computer and use it in GitHub Desktop.
SharePoint People Editor Validator with jQuery Validation plugin
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
//People Editor Validator with jQuery Validation plugin | |
function validatePeopleEditor(peId,messageText) | |
{ | |
var $pe = $("#" + peId); | |
var $peValHolder = $pe.find("input[id$='hiddenSpanData']"); | |
$peValHolder.rules("add", { | |
required: true, | |
messages: { | |
required: messageText | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing, can you please show example of how to use this within Jquery validation plugin ?