Amit
Amit

Reputation: 545

how submit grails form with submit button ouside form tag

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

Answers (1)

ABC
ABC

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

Related Questions