Skip to content

2 thoughts on “TIL how to add !important to css attributes with jQuery

  1. Monther Younis says:

    Thank you so much this was helpful, but i want to ask, what if the width is a dynamic value

    ex. $(‘.element’).css(‘width’, left + 10); i want to make this width !important, is it doable?

    thank you

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *