here's my simple code:
var msgbox = $("<div style='width:320px;height:200px;'></div>");
alert(msgbox.width());
the alert gives me zero - what's wrong? why isn't it 320?
thx
You should insert your div in the document first. Or use .css("width") instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With