Javascript POST request for Update, no HTML text update
<p>I have been writting a CMS, and im currently working on a remote Updater script, so users can update the CMS with a click of a button. Problem is, i cant see to get this JS snippet below to work:</p>

<pre><code>    &lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        $('#update').html('Checking for updates...');
        check();
      });

    //function to check for new updates
    function check(){

        //use ajax to run the check
        $.post("http://updateserver.come/get_update.php", { version: cms_version },
            function(result){
                //if the result is 1
                if(result == 1){
                    //show that there are updates
                    $('#update').html('Updates is Available');
                }else{
                    //show that there are NO updates
                    $('#update').html('Updates are not Available');
                }
        });

    }
    &lt;/script&gt;

&lt;div id="update"&gt;&lt;/div&gt;
</code></pre>

<p>The problem is, when JS gets the response, it doesnt update the text between the divs. Anyone have a clue why this is?</p>
