I have few textboxes and an editbutton on a html page - say T1, T2, T3, T4. I have onchange event for T1. The onchange event makes T2 readOnly=true T3,T4 editable(sets readonly property = false)
Now, I have a button - "edit" - what it does is makes T2 readonly=false T3 and T4 uneditable(sets readonly property = true) and focus goes to T1.
Next, I am now at T1. I click tab(even without changing the value of T1) - and the problem arises - onChange event of T1 is fired! and it makes T2 readOnly=true T3,T4 editable(sets readonly property = false) which is undesirable.
How can I avoid onChange of T1 to fire on clicking tab from T1 when T1 is in focus? Any help on this is very much appreciated. Thanks in advance!