I have this code:
<head>
<script>
$(document).ready(function(){
$('form').validate({
rules: { 'input_name': { email: true} },
messages: { 'input_name': "Is not an email" } }) });
</script>
</head>
<body>
<form id="clar">
Escribe ALGO <input name='input_name' type="text" ">
<input type="submit" >
</form>
If I dont insert a email addres, an error is showed, and.. the class "error" is added to the input element.
Why is added that class to the input? How to avoid it?
Regards
Javi