4
我有这个梦幻般的小插件工作,但我需要要求至少选择一个名字。我通常使用jquery.validate。但是,验证插件似乎无法在使用tokeninput的字段上工作。有人有答案吗?一如既往,非常感谢您的帮助。jquery.tokeninput required
$("#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..."
})
Laura,我添加了关于jQuery.tokenInput的另一个问题。你有没有这方面的经验? http://stackoverflow.com/questions/10341035/jquery-tokeninput-plugin-and-focus。谢谢你的帮助。 – Kerrie 2012-04-27 12:31:47
谢谢一吨劳拉。你救了我的一天! – 2013-03-21 15:20:21