$.get("/student/Studentnumber.php", $("myform").serialize(),
function(data){
alert(data);
if(data.substring(0,7) == 'STDERR'){
//$("#MYSPAN").text(data.substring(8));
} else {
//$("#MYSPAN").text(data);
}
}
);
In the Above Script I have The PHP response coming from the "Studentnumber.php" .The "Data" field contains the Contains the "Student NAME" if the correct number is entered .if a wrong number is entered it displays the "STDERR:SNO NOT VALID ".Now Here I want the respone only "SNO not VALID " when a wrong number is entered .I want to over come the "STDERR:"