set element width jquery code example Example 1: jquery get element width $('#element').width(); Example 2: jquery set width $(".example").width("px");