html dropdown click not woking

801
4
12-08-2016 06:49 AM
PrasadG
New Contributor II

hi...

we have application where we query the feature layer and get result in html drop down with "dom.byId("dropdownId",change,addData)".  In local it working but after deployment we are getting error , we not able to get the change event. we can't understand what is problem it is working in local but not in public.

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Prasad,

   Does your browsers web console give you any clues?

0 Kudos
PrasadG
New Contributor II

"on undefined" means my .js file where i wrote the code for drop down change not working...but it is working in my intranet systems but problem after deployment.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Prasad,

dom.byId("dropdownId",change,addData). That does not look correct.

It would normally look like:

on(dom.byId("dropdownId"), "change", addData);

0 Kudos
PrasadG
New Contributor II

thanks robert my code working after  put the code parent file. means i delete the my.js file and add that code to mail.js file.

0 Kudos