Firefox 不断给我这个消息:
Hour: 16:11:32
Erro: SyntaxError: missing } after property list
Line: 12, Column: 2
Messages: { name: { required: "Your name here", minlength:
这是代码:
$(document).ready(function() {
$("a").click(function() {
alert("Hello evrbdy");
});
$("#button1").click(function() {
$("a").hide("slow");
});
$("#fomu").validate({
rules: {
nome: {
required: true,
minlength: 6
}
}
messages: {
nome: {
required: "some message",
minlength: "some other message"
}
}
});
});
我究竟做错了什么?