Results 1 to 4 of 4
Thread: onchange event handling in IE
Apr 4, 2007, 07:44 #1
- Join Date
- Apr 2007
- 0 Post(s)
- 0 Thread(s)
onchange event handling in IE
Im struggling with an event handling issue in IE 6.0.
Following snippet illustrates the situation:
<input type="text" name="textfield" id="textfield" onchange="handleOnChange()"/>
<button id="button" onchange="handleButtonClick()">button</button>
When I change the text in the textfield and next I click on the button I would like to have both the 'handleOnChange' and 'handleButtonClick' to be executed, but only handleOnChange is executed and I have to click the button a second time to fire the 'handleButtonClick'.
In Firefox this works fine, but in IE the onchange event prevents the execution of the onclick event.
Does anyone know a workaround for this problem?