How to use / combine 2 jquery scripts that use two different datatypes
<p>Tomas has been helping me on this problem and we have made some real progress I think. Here is the modified code. What this is supposed to do is to first, take my query string and pass it to the server where the data is parsed and inseted in the database. When the class method returns a success, the JQ function should echo a 100% css styled div (id=message) with the message from the server. It can also return a failure message as well. This message is imported?? with json. I can see the message in the FF console but I just can't see the message in the browser.</p>

<p>Another issue I am having is that every div on the page is having the id=message appended to it.</p>

<p>EDIT:</p>

<pre><code>$.ajax({
    type: "POST",
    url: "body.php?action=admCust",
    data: dataString,
    success: function(data){
        $('#admCust input[type=text]').val('');
        var div = $('&lt;div&gt;').attr('id', 'message').html(data.message);
        if(data.success == 0) {
            $(div).addClass('error');
        } else {
            $(div).addClass('success');
        }
        $('body').append(div);
        $(div).show();
      }
});
return false;
</code></pre>
