Whenever jquery validation error messages appears. It occupies some space and push other fields downwords. I want error messages to be adjust in available space and should not disturb other fields or any other element. following is a jquery validation code that Im using.
$(document).ready(function(){
jQuery("#frmQuickAdd").validate({
errorElement:'div',
rules: {
t_style: {
required: true
}
},
messages: {
t_style: {
required: "Please select therapy style"
}
}
});
});
I tried div,label,span in errorElement:'', still having same problem and error div by default taking class 'error'. Any Idea what CSS I should write ?