简体   繁体   中英

how to put values in grails select tag manually

how to put values in select tag in grails.

 <g:select name="country_name" > </g:select>

like all country name USA,UK,AUS,SA,CAN,INDIA

<g:select name="country_name" from="${['USA','UK','INDIA']}"> </g:select>

通过这个你可以手动输入值

from="${['USA','UK','INDIA']}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM