jquery $().validate() 问题
mvc jquery前台验证运行没反应
$().ready(
function()
{
$("#f").validate({
rules:(
Text1:{
required:true
}
)
}
)
}
)
<form id="f" ''
@html.TextBox("Text1")
<input type="Submit" ''
</form ''
运行后,文本框是空的,提交没反应 ,问题在哪,另外$()括号中取元素是填id #id 还是name rules里的是填id 还是name
请不吝赐教,谢谢