SyntaxFix
Write A Post
Hire A Developer
Questions
Using jQuery you can achieve this by doing
var cw = $('.child').width(); $('.child').css({'height':cw+'px'});