[jQuery] validate text question..

[jQuery] validate text question..


hi!
I'm new to jquery and I seem to have some problems.
For example let's take this script..
$.post("insert.php", { whatever:whatever },
         function(data){
        $("#status").html(data).slideDown("slow");
});
..if this script is executed correctly I should see the contents of
"data" displayed in my #status div , assuming that insert.php echoes
something back.
Now for my question: is there a way to search the contents of data
before they get displayed ?
something like : if(data.text == "some text") do something..
thx in advance!