Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
I';我正在尝试为g:select设置默认消息_Select_Grails_Gsp - Fatal编程技术网

I';我正在尝试为g:select设置默认消息

I';我正在尝试为g:select设置默认消息,select,grails,gsp,Select,Grails,Gsp,我有一个select语句,我试图让下拉选择菜单显示一个提示行,如请选择,而不仅仅是一个默认选择 <g:select name="country" from="${countrylist}" /> 有没有办法用value属性或类似的东西来实现这一点?使用g:select标记的noSelection属性 <g:select name="country" from="${countrylist}" noSelection="['':'Please select a coun

我有一个select语句,我试图让下拉选择菜单显示一个提示行,如请选择,而不仅仅是一个默认选择

<g:select name="country" from="${countrylist}" />


有没有办法用value属性或类似的东西来实现这一点?

使用g:select标记的noSelection属性


<g:select name="country" from="${countrylist}" noSelection="['':'Please select a country']" />