我无法让一个简单的 jQuery 验证示例正常工作。如何修改这个小提琴以使字段在失去焦点时验证?
http://jsfiddle.net/jeljeljel/wyB3w/2/
HTML
<div id="pseudoForm">
<input type="text" name="first_name" />
<input type="text" name="last_name" />
</div>
JS
$("#pseudoForm").validate({
onfocusout: true,
rules: {
first_name: "required",
last_name: "required"
}
});