I've got the following code:
<iframe>
...
<form id="formId" action="someurl">
</form>
<a href="#" onclick="$('#formId').submit(); return false;">click</a>
...
</iframe>
I want to submit the form by clicking on link BUT to stay on the same page (not to redirect). I've tried $(document).on('click', 'a', false);
with no luck.