[jQuery] get Ajax answer to test it

[jQuery] get Ajax answer to test it


Hi everyone,
I'm getting in trouble with ajax and jquery.
Here is what i need:
I want to execute a php script to test the value of an input. There is
no problem with event and triggering the request. Here is my code :
$.ajax({
             url: 'emplacements/verifiernumero/numero/'+input.val(),
             success: function(responseText){
             // on success callback
                 alert("on a fait la rek"+$.html(responseText));
             },
             error: function(responseText){
             // on error callback
})
the url is read thanks to zend_framework, which will take the
parameter input.val
the php script is rendering me something like :
-if it'okay i get 1,
else if get nothin
If I executed the page 'emplacements/verifiernumero/numero/'+My_value
I get 1 or nothing....depending of my tests..
well what I want to do is get the "answer" of the script, to test it
how can we do this ? I read the documentation, but didn't found.
Thankyou in advance for your help .