I'm a Professional WordPress Developer with 5+ years of web design and development experience including ...
with accessing tag name you can use the .submit() method of JavaScript for it .
Let’s Say You Have One Form Where You Using Div instead of submit button .
<form id="form1" action="" method="POST"> <div onClick="submitForm()"></div> </form >
Now There is two Ways You Can Do This
Sol 1 :: by TagName ;
document.getElementsByTagName('form')[0].submit()
Sol 2 : by Id
<script> function submitForm(){ var form = document.getElementById("form1"); form.submit(); alert("Form Submitted"); } </script>
Whenever user Click On Div Form Get Sumitted.
Auto Sync....
Select Categories
with accessing tag name you can use the .submit() method of JavaScript for it .
Let’s Say You Have One Form Where You Using Div instead of submit button .
Now There is two Ways You Can Do This
Sol 1 :: by TagName ;
Whenever user Click On Div Form Get Sumitted.