javascript within php
<p>I am trying to do the following in jquery</p>

<pre><code>&lt;?php

    echo "&lt;script&gt;";
    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 "&lt;/script&gt;";
</code></pre>

<p>?></p>

<p>But the variable contentHeight output 300px20. I want to do javascript addition, but its getting concatenated. How can this be achieved?</p>
