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