 <p>Use <code>setInterval</code> function to do your checking</p> <pre><code> setInterval(function(){ var value=$("#your_id").val();//textbox value $.ajax({ url: "ajax.php", type: "get", //send it through get method data:{value: value }, success: function(response) { //Do Something //alert(response); }, error: function(xhr) { //Do Something to handle error } }); }, 5000); </code></pre> <p>In ajax.php you check that value</p> <pre><code>if(isset($_GET['value'])){ $value=$_GET['value']; //select your old value from database suppose it as $old_value if($value!=$old_value){ //update your table using $value } } </code></pre>