Richard Rodriguez Richard Rodriguez - 1 year ago 70
HTML Question

Submit a html form without having a submit button?

Can I submit a html

instead of
<input type="submit">

Like this:

<form method="post" action="" id="myForm">
<textarea name="reply">text</textarea>

<div>Submit the form by clicking this</div>

Answer Source

Quite simple;


And if you want to do it jQuery style (which I do not recommend for such a simple task);

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download