Skip to content Skip to sidebar Skip to footer

Buttons OnClick Event Not Firing When It Causes A Textboxes OnChange Event To Fire First

I have a few textboxes and button to save their values on a webpage. The onchange event of the textboxes fires some js which adds the changed text to a js array. The ok button when

Solution 1:

is the __doPostBack function the one failing to execute? in this case, the return false is the obvious problem - once you return, no more code gets executed.

on a more pedantic note, you should really stop using onBlah handlers in your html, and instead use a modern javascript library that provides event observers. i recommend jquery but extjs or prototype would also work and make life much easier for you in a thousand other ways.


Post a Comment for "Buttons OnClick Event Not Firing When It Causes A Textboxes OnChange Event To Fire First"