2012-03-14 18 views
1

プロトタイプを使わずにGrails 2.0.1でCountry and Stateのような依存関係のドロップダウンを作成した人がいるかどうかを知りたいです。あなただけのremotefunctionとグラムを使用することができ、コードGrails 2.0.1依存性ドロップダウン

答えて

0

のスニペットを感謝:選択して、

<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/

のようなものを