Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQueryでは、 $('#idOfSelectTag').val('someValue'); を実行できます。
Googleクロージャーで同じことをする方法は?
最も近いものは次のとおりです。
goog.dom.forms.setValue( goog.dom.getElement('idOfSelectTag'), 'someValue');
閉鎖メーリング リストの Derek Slager に感謝します。正しい方法:
goog.dom.forms.setValue(goog.dom.getElement('idOfSelectTag'),'someValue');