How is css(‘width’) different from width() in jQuery?

These two are different methods available in jQuery to change the width of an element. The difference is that in CSS(‘width’), we have to add px in the width value while this is not required in width().


Comments

Leave a Reply

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