Reputation: 545
Is it possible to submit a grails form () with submit button () outside that form. I know we can do the same in javascript for simple HTML page. I m relatively new to grails (gsp pages) having hard time knowing the new tags.
Thanks in advance.
Regards, Amit
Upvotes: 3
Views: 1963
Reputation: 4373
You can use jquery to submit your form outside form tag as:
<button class="some-class" onclick="jQuery('#formId').submit()">Submit</button>
Enjoy programming..
Upvotes: 3