I'm creating html element using jQuery like so:
var newListItem = $("<li>" + variableName + "</li>");
var widthOfNewItem = newListItem.width(); //<-- will return 0
How can I find this new elements width? I'm trying to call newListItem.width() but that returns 0.