Is it possible to select the default parameter field in the tag g:select?
I only saw the noSelection parameter in the documentation.
<g:select name="user.age" from="${18..65}" value="${age}"
noSelection="['':'-Choose your age-']"/>
But I need a default choice from the data I received.
For example, 18..65 is my range, and I want to choose 20 by default.
Is this possible or do I need to do this using javascript?
thanks
source
share