bevardgisuser
bevardgisuser

Reputation: 413

dojo.form.Select onChange Not Fired

I am currently using dojo 1.7 to do the programming. I am getting stuck on onChange event for dojo.forms.Select. It seems to me that it never got fired. I tried to search on the Internet. But I am out of luck. What could be wrong? Any suggestions or help would be greatly appreciated.

Code used to attached the event to dojo.form.Select:

var findLayerListOnChangeEvent = dojo.connect(findLayerListSelect, "onChange", function(newValue) {
doFindLayerListChange();

});

HTML code for the dojo.form.Select

<select id="findLayerList" data-dojo-type="dijit.form.Select" data-dojo-props="required:true, sortByLabel:false" name="findLayerList" disabled="disabled" maxHeight=-1 style="width:150px;">
<option value="ID">Layer List</option>

Upvotes: 3

Views: 955

Answers (1)

What is findLayerListSelect in your JS code.

In HTML code replace id with data-dojo-id.

Better write a jsfiddle with your code and I can help you fixing it.

Upvotes: 1

Related Questions