I have a div that i have added a border style to. However when I try to add a CSS class to it the div style over rides it.
if ($("#input-whatmask").val() != '')
{
if(!searchReg.test($("#input-whatmask").val())){
$("#input-whatmask").addClass("errorinput").after('<span class="error">Enter a valid value.</span>');
hasError = true;
return false;
}
}
Anyone confirm the correct way / method of doing this ?