开发者

Grails: How to create a clear button?

开发者 https://www.devze.com 2023-01-05 12:26 出处:网络
Hello I have created a filter for my list. In a template named _search.gsp And I need a clear button that clears out all the fields in the filter.

Hello I have created a filter for my list. In a template named _search.gsp And I need a clear button that clears out all the fields in the filter. I have one textField named proyectoRutaN And four datePickers named fechaCambioD , fechaCambioH , lastUpdatedD, and lastUpdatedH

Any开发者_JS百科 help would be greatly appreciated! Thanks!

-Fernando


I think you can just use the html tag:

<input type='reset' value='Reset' />

within your form.


Alternatively, you could use g:field as per other input types:

<g:field type="reset" name="myReset" value="Reset" />
0

精彩评论

暂无评论...
验证码 换一张
取 消