Nimbuz Posted February 3, 2009 Share Posted February 3, 2009 This code: $(".selector").each(function (i) { var capacity = Math.round($(this).text().replace(/\,/,"")); $(this).width(capacity); }).fadeIn(2000); ..returns width in px, how can I modify it to use percentage? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/143632-width-in-instead-of-px/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.