post value when user key in the nth character in the text box
Hi,
we have a requirement where user needs to enter 9 characters in the textbox. on entering the 9th character, search button should be enabled and the format of the textbox should be changed to XX-XXX-XX. currently we are using a change event to post the value to the clipboard and an edit input to format the text. This works when we click anywhere outside the textbox after entering the 9 characters. We have tried with any key event but then the event is firing after every character and cursor moves out of the textbox after every key and we need to click on the textbox again.
Is there a way we could achieve the post value and edit input to fire when user key in the 9th character.