<script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
<link href="/CSS/jquery.wysiwyg.css" rel="stylesheet" type="text/css" />
<script src="/JS/jquery.wysiwyg.js" type="text/javascript"></script>
<script type="text/javascript" >
$(document).ready(function () {
$('#wysiwyg').wysiwyg()
});
</script>
<form id="form" action="example/foo" method="post">
<textarea id="wysiwyg" name="question" class="required" rows="5" cols="10"> </textarea>
</form>
This is my code in which I am using an HTML editor. I put require validation and it works fine, but if I put only some spaces and submit my form jQuery assumes it is valid. On the other hand in the rest of my project jQuery is behaving normally.
How can I solve this?