开发者

Grails: How to create a clear button?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜