Skip to content Skip to sidebar Skip to footer

How To Autosubmit Data Html Form?

I have this simple form:
Copy

HTML:

<form ENCTYPE="multipart/form-data" action="story.php" method="POST"id="storyForm">
<input type="submit" value="Show files">
<input type="hidden" name="emailp"id="emailp" value="">
</form>

Solution 2:

If you add an ID to that form you could do it like this .

$('#FORM_ID').submit(); with jQuery

form = document.getElementById('FORM_ID');
   form.submit();

or with JavaScript

Post a Comment for "How To Autosubmit Data Html Form?"