hi i am using jquery
i want to add css color with important property to a label
i am currently trying it by
jQuery(this).css('color','green !important')
with out using a class
like
label_class
{
background-color:#f2f2f2 !important;
}
and using like
jQuery(this).addClass('label_class');
can i use only jquery to do this , please help
Yes its not that hard, but you should try avoid using !important all the time.
Heres a link to similar question How to include !important in jquery
Hope this helps 🙂