function contentWidth(obj) { var width = obj.wrapInner("<span></span>").children().width(); obj.html(obj.children().html()); return width;}
Now you can use the function like this...
var width = contentWidth($("#myp"));
Post a Comment
No comments:
Post a Comment