Skip to main content
18 events
when toggle format what by license comment
Oct 9, 2014 at 6:26 audit Suggested edits
Oct 9, 2014 at 6:27
Sep 9, 2014 at 21:08 vote accept user3312508
Sep 9, 2014 at 20:56 answer added Bergi timeline score: 0
Sep 9, 2014 at 20:54 history edited user3312508 CC BY-SA 3.0
deleted 2852 characters in body
Sep 9, 2014 at 20:53 vote accept user3312508
Sep 9, 2014 at 21:08
Sep 9, 2014 at 20:45 comment added Bergi @user3312508: Please show that part as well. You need to use the variable with the instance, not this. The $('#' + this.ID + ' .selMake').on('change', this.getCarModel); should go in that file as well (or, if you want to execute it for all instance, in the constructor). Placing it outside of everything doesn't make sense.
Sep 9, 2014 at 20:43 history edited Huangism CC BY-SA 3.0
Removed tag from title
Sep 9, 2014 at 20:43 comment added user3312508 @Bergi I have its in a different js file.Is it possible to add event listener to the object?
Sep 9, 2014 at 20:41 comment added Bergi @user3312508: You don't even have created an instance of vehicleSelect!
Sep 9, 2014 at 20:40 comment added user3312508 @Bergi Added the full code
Sep 9, 2014 at 20:40 history edited user3312508 CC BY-SA 3.0
added 2852 characters in body
Sep 9, 2014 at 20:37 comment added Bergi Can you please show the full code, including the surrounding function?
Sep 9, 2014 at 20:36 answer added Barmar timeline score: 1
Sep 9, 2014 at 20:35 comment added Bergi You must pass a function to .on(), not the result of a call!
Sep 9, 2014 at 20:35 comment added Travis J Related: stackoverflow.com/questions/24173440/save-access-to-this-scope
Sep 9, 2014 at 20:29 comment added Barmar @wootscootinboogie No it isn't, since that code isn't in a callback function.
Sep 9, 2014 at 20:27 answer added Jorge Silva timeline score: 1
Sep 9, 2014 at 20:26 history asked user3312508 CC BY-SA 3.0