I have a form that has 3 text boxes that are masked using the jquery input mask plugin. All 3 textboxes have a TextChanged event and AutoPostBack=true;
The problem is that when I change the text of one textbox and hit enter, it is firing the TextChanged event for all 3 boxes.
I assume that it is due to how jquery does the masking, and that it changes the text at a point late enough in the event cycle that .net registers it as being changed. Is there a way to prevent it? I have tried using return false at the end of my jquery function, but it's not helping either.
Here is the relevant jquery code, at the top of my aspx page:
$("#<%= txtPrimaryPhone.ClientID %>").mask("999-999-9999? x9999");
$("#<%= txtOtherPhone.ClientID %>").mask("999-999-9999? x9999");
$("#<%= txtZip.ClientID %>").mask("99999?-9999");