title: why jquery doesnt return the success
body: <p>my jquery is not populating the div myPrint on either success or failure.</p>
  
  <p>here is my ajax</p>
  
  <pre><code>$.ajax({
              type: 'POST',
              url: 'file.php',
              data: 'tyID=' + tyID.value ,
              success: function(success) {
                  if(success == 1) {
                      $("#myPrint").html('Worked'); 
  
                  } else {
                      $("#myPrint").html('there Didnt work'); 
                  }
              }
          });
  </code></pre>
  
  <p>in php I have success = 0 on failure and 1 on success. I can see php working fine</p>
  
  <p>here is html</p>
  
  <pre><code>&lt;div id="myPrint"&gt;&lt;/div&gt;
  </code></pre>