I want to ask if there is any way to make this work:
         $.ajax({
             type : "POST",
             url : "process.php",
             data : $("#numberform").serialize(),
             success : function(data) {
                 if(data==true){
                  alert("Thats the right number");
                  }
                   else{
                    alert("Thats the wrong number);
                   }
             }
         });
Process.php
if(isset($_POST['number'])){
$numb=$_POST['number'];
if($numb=="1"){
     return true;
   }
   else{
  return false;
        }
}
Is possible to do anything like this? I want to see the returned data from the ajax call on success.
 
     
    