I am trying to do the following in jquery
<?php
echo "<script>";
echo "$(document).ready(function(){";
echo "$('#mainbody-wrapper').removeClass('mainbody-wrapper')";
echo ";";
echo "$('#mainbody-wrapper').addClass('newStyle')";
echo ";";
echo "contentHeight=$('.content').css('height') + 20";
echo ";";
echo "alert(contentHeight)";
echo ";";
echo "$('#mainbody-wrapper').css('height',contentHeight)";
echo ";";
echo "$('#subcontent-wrapper').remove()";
echo ";";
echo "})";
echo "</script>";
?>
But the variable contentHeight output 300px20. I want to do javascript addition, but its getting concatenated. How can this be achieved?