0

Hi All,

This should be an easy one. I am using a single OnChange event with several <Select> statements, and need to identify the specific <Select> control that fired off the onchange event. I'm certain there must be a way to grab the ID or Name from the specific control in the javascript function, but I haven't been able to find it. Any thoughts?

Thanks,
Jim

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by jimmiller96
0

Why dont you just send the name of the element or id of the element in to the onchange function, send the element using "this", so the function call could be something like this :

... onchange="callMe('elementId')"

or

... onchange="callMe(this)"

Then inside the callMe function u will then have the element ID or the element object available to you.

0

Doh! Perhaps it was late, or maybe I was having a senior moment... either way this is a good reminder to think outside the box rather than force things as I see them. Thanks!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.