Connecting Tech Pros Worldwide Help | Site Map

Which input triggered onChange

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 3rd, 2008, 07:05 PM
brian.gaber@pwgsc.gc.ca
Guest
 
Posts: n/a
Default Which input triggered onChange

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?

  #2  
Old March 4th, 2008, 07:35 AM
Bart Van der Donck
Guest
 
Posts: n/a
Default 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
  #3  
Old March 4th, 2008, 07:55 AM
Bart Van der Donck
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.