jQuery width()

jQuery width() method sets or returns the width of the selected element. Syntax: When used to return the width: $(selector).width() When used to set the width: $(selector).width(value) When used to set the width using a function: $(selector).width(function(index,currentwidth)) Value: Value is a compulsory parameter of the jQuery width() method, as it specifies the width to set … Read more