如何从javascript调用中删除Dojo Dijit
如何更改以下代码以仅使用html选择我们不想使用dijit或dojo ..有人可以帮助我们
<script type="text/javascript">
Spring.addDecoration(new Spring.ElementDecoration({
elementId : "borough",
widgetType : "dijit.form.Select",
widgetAttrs : {
promptMessage : "Enter Borough",
required : true,
onChange : function() {
Spring.remoting.submitForm(
'submit',
'member',
{_eventId: 'loadSchools', fragments:'contents'}
);
return false;
} }}));
</script>
答案 0 :(得分:0)
删除Dojo内容并将其替换为普通的纯Java脚本:onchange='this.form.submit()'
:
<form ...>
<select name='someField' onchange='this.form.submit()'>
<option>A</option>
<option>B</option>
<option>C</option>
</select>
</form>