Connecting Tech Pros Worldwide Forums | Help | Site Map

Which input triggered onChange

brian.gaber@pwgsc.gc.ca
Guest
 
Posts: n/a
#1: Mar 3 '08
I have a table inside a form and each row of the table has a similar
<SELECT ... statement, only the name and id is different.

Here is one example:

<select name="status11" onchange="status_OnChange()" id="status11">

<option selected="selected" value="Active">Active</option>
<option value="Correction">Correction</option>
<option value="Audit">Audit</option>
<option value="Hold">Hold</option>
<option value="Complete">Complete</option>

How can I determine which <SELECT ... triggered the onchange?

Bart Van der Donck
Guest
 
Posts: n/a
#2: Mar 4 '08

re: Which input triggered onChange


brian.ga...@pwgsc.gc.ca wrote:
Quote:
<select name="status11" onchange="status_OnChange()" id="status11">
>
<option selected="selected" value="Active">Active</option>
<option value="Correction">Correction</option>
<option value="Audit">Audit</option>
<option value="Hold">Hold</option>
<option value="Complete">Complete</option>
>
How can I determine which <SELECT ... triggered the onchange?
<select onchange="alert(this.value)" size="1"
name="status11" id="status11">

--
Bart
Bart Van der Donck
Guest
 
Posts: n/a
#3: Mar 4 '08

re: Which input triggered onChange


Bart Van der Donck wrote:
Quote:
* *<select onchange="alert(this.value)" size="1"
* * name="status11" id="status11">
Rereading the original question. My solution would be for the
triggered option, not for the select.

--
Bart
Closed Thread