faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 31 people (61%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Using an onChange event, how do I get the name of the widget that invoked the event?

Apr 5th, 2008 20:20
ha mo, Arsen Yeremin, Doug Vanderpool,


<html>
<head>
	<title>My Listbox</title>
</head>
<body>
<form name="my_form">
  <select name="my_select" onchange="alert(this.name)">
    <option value="a">a</option>
    <option value="b">b</option>    
    <option value="c">c</option>    
    <option value="d">d</option>
    <option value="e">e</option>        
  </select>
</form>
</body>
</html>
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com