<script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> function searchNow() { $("#im").css({"display":"block"}); var a=$("#h").val(); var b=$("#hi").val(); var dataString = 'name='+ a + '&namei=' + b; //your validation code $.ajax( { type:"POST", async: false, url:"register.php", data: dataString, success: function(data) { //alert("test"); $("#im").css({"display":"none"}); $("#message").html(data); } } ); } </script>
No comments:
Post a Comment