userimage

How to add or remove a css class from a div?

I have a div having class named "createBorder". Now i want to remove a css class from a div and based on some condition i want to add a css class?
userimage

To add or remove a css class you can use Jquey apis as below:


 $('#divid').addClass('classtoadd');
 $('#divid').removeClass('classtoremove');


Done man!!!

Answer is