I am trying to submit the parent form, using an "onclick" event without specifying the form's id. There is a reason for this. I am using a webfont for a button hence the "span".
My code:
<form action="/Index" method="post"> <p>
<span class="fa fa-arrow-circle-right" onclick="document.form.submit();" style="font-size:50px;cursor:pointer;"></span>
<input type="hidden" name="id" value="10000"/>
</p>
I have also tried:
onclick="this.form.submit();"
This also failed to work.
What is the correct code please?