how to submit a form without a submit button?
Is there any way to submit a form without clicking a submit button ?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
<input type="hidden" id="uname" value="">
<input type="hidden" id="email" value="">
<script type="text/javascript">
$(document).ready(function() {
var uname=$("#uname").val();
var email=$("#email").val();
jQuery.ajax({
url: "domian.com/result.php",
data: { uname: uname, email: email },
dataType: "json",
success:function(data){
console.log (data);
}, error:function (){} });});
</script>