I want to get the id of the select element on change event. My .change() event is defined inside a private function. As I am learning design patterns in javascript, I have used Revealing Module Pattern to define my functions.
I tried out two examples which are almost same(change is only in HTML) but one works and other doesn't.
This code snippet DOES NOT work
I can't figure out the reason why this is happening
Also please comment on the proper way/standard way to define events inside revealing pattern
Aucun commentaire:
Enregistrer un commentaire