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