2012-03-14 83 views

回答

0

你可以只使用remotefunction和g:选择,像

<g:select 
     onchange="${remoteFunction(
        controller:'example', 
        action:'country', 
        update:'state', 
        params:'\'country=\'+$(\'#country\').val()' }" 
name="country" ... /> 

http://alexduan.com/2011/02/17/grails-jquery-and-ajax/