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().
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().
Leave a Reply