привет, я использую плагин проверки jquery и jquery в моем приложении.проверка работает в Firefox
, но не работает ни в одной IE
версии.я не знаю почемупожалуйста помогите
<html>
<head>
<script type="text/javascript" src="<?php echo $this->config->item('3rd'); ?>jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="<?php echo $this->config->item('3rd'); ?>jquery/jquery.validate.js"></script>
<script>
var jq = jQuery.noConflict();
jq(document).ready(function(){
var x=jq("#test").validate({
rules: {
fname: {
required:true,
minlength: 3,
maxlength: 250
},
lname: {
required:true,
minlength: 3,
maxlength: 250
}
},
messages: {
fname: {
required: "Enter your Business Name",
minlength: "At least 3 characters long",
maxlength:"Maximum length allowed is 250 charactors"
},
lname: {
required: "Enter City",
minlength: "min length 3",
maxlength:"Max length 250"
}
}
});
});
</script>
</head>
<body>
<form action="" method="post" id="test">
First name: <input type="text" name="fname" /><br />
Last name: <input type="text" name="lname" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html>