$(document).ready(
function(){
$("#form1").validate(
{
rules:
{
email:
{ // compound rule
required: true,
开发者_如何学运维 email: true
},
password: "required",
verify: {
equalTo: "#password"
}
}
});
});
can someone pls tell me where on this script i have an error. IE8+IE7 says i have an error. it is driving me bananas:-)
you best bet is to install google chrome web browser, navigate to the webpage and press CTRL+SHIFT+J
to open up the JavaScript console: Will look lie so:
IE 8
Select Tools → Developer Tools from the main menu or toolbar.
Press F12.
IE 6 and IE 7
The best JavaScript debugger for IE 6 and IE 7 is the Microsoft Script Editor which comes with Microsoft Office. To enable debugging in IE, select Internet Options → Advanced and ensure that the "Disable script debugging" checkboxes are unchecked.
To view the generated HTML source for a document, install the IE Developer Toolbar. This provides a tree view of the DOM of the generated HTML source.
JavaScript code can cause memory leaks in Internet Explorer. The JavaScript Memory Leak Detector can locate JavaScript code that causes memory leaks.
Chrome And firefox
ctrl+Shift+j
精彩评论