jquery.tokeninput required
Posted
by
Kerrie
on Stack Overflow
See other posts from Stack Overflow
or by Kerrie
Published on 2012-03-21T18:55:03Z
Indexed on
2013/10/21
9:54 UTC
Read the original article
Hit count: 309
I have this fantastic little plugin working but I need to require that at least one name be selected. I normally use jquery.validate. However, the validation plugin does not appear to work on a field using the tokeninput. Does anyone have an answer? As always, thanks so much for your help.
$("#NewMessage").validate({
rules: {
name: {
required: true
}
}
});
$("#name").tokenInput("lookup.cfc?method=getNames&returnFormat=json", {
hintText: "Type in the name of recipient(s)",
noResultsText: "No results",
searchingText: "Searching..."
})
© Stack Overflow or respective owner