Hi guys,
is there any possiblity to select a option field by default in gsp g:select tag?
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 selection from the data I got.
For example 18..65 is my range and I want to select 20 as default selection.
Is that possible or do I have to do this with javascript?
Thank you