I have a textbox with some css property created by formHandler method. When I check the textbox is empty and I applied another css class for red color in the border through jquery code is below
$('a,button').click(function () {
if($("#FHE_0_first_name").val()=="")
{
$("#FHE_0_first_name").addClass("errorCSS");
}
});
and my css is below
.errorCSS
{
clear:both;
border:1px solid #ff0000 !important;
background-color:#ffeeee !important;
}
The red color and background color just come and disappered how can i keep the neww css .
appreciated all suggestions