jquery ajax to insert and load data from database
<p>Not able to insert and load data using this code</p>

<pre><code>$.ajaxSetup({
    // Disable caching of AJAX responses
    cache: false
});




$(function() {

    $("#submit").click(function() {
        var test = $("#txtarea").val();
        var dataString = 'question=' + test;
        if (test == '') {
            alert("&lt;h3&gt;Please Enter Some Text&lt;/h3&gt;");
        } else {
            $("#loading").show();
            $("#loading").fadeIn(400).html('&lt;span class="loading"&gt;Loading Comment...&lt;/span&gt;');
            $.ajax({
                type: "POST",
                url: 'q&amp;a.php',
                data: dataString,
                cache: false,
                error: function() {
                    $('#loading').html('&lt;p&gt;An error has occurred&lt;/p&gt;');
                },
                success: function(html) {
                    $("#cm").after(html);
                    document.getElementById('txtarea').value = '';
                    document.getElementById('txtarea').focus();
                    $("#load").hide();
                }
            });
        }
        return false;
    });

});
</code></pre>