title: Sending A Text Value To PHP Using JQuery/AJAX
body: <p>I can't figure this out. I have this HTML</p>
  
  <pre><code>&lt;input type="text" class="studno"&gt;&lt;input type="button" value="Check" class="chstudno"&gt;
  </code></pre>
  
  <p>How can I send this to PHP using JQuery/AJAX? I have this code but I think it's wrong</p>
  
  <pre><code>var boom = 'booming';
  
  $(document).ready(function(){
  $(".chstudno").click(function(){
  $(".inup").html(boom);
  studnoch();
  });
  });
  
  function studnoch(){
  var studno = $('.studno').val();
  $.post("prochat.php", {studno: studno};
  }
  </code></pre>
  
  <p>As for the php file, it's a simple command that will check if the input variable matches any thing on the database.</p>