We are using a masked input in a webpage but when we repopulate the masked edit, it doesnt populate it correctly.
We are doing the following:
$(“#GSTNumber”).jqxMaskedInput({ mask: ‘##-###-###’ });
$(“#GSTNumber”).jqxMaskedInput(‘val’, data.PayerGSTNumber);
The one thing we ARE doing is removing the ‘-‘ when we save the value (as a string) but when re populate the value it doesnt populate the value correctly. The below is a copy of the text we are populating, and the resulting text that goes into the masked input:
the data to be populated is: 33333333
the date when populated: 33-333-3__
What is it we are doing wrong??