Problem one
Steps to recreate: Write "1234" in the textarea.
Excepted result: "1234"
Actual result: "3412"
After two chars the cursor is moved to the start of the textarea
Problem two
Steps to recreate: Write "ab" in the textarea
Expected result: Empty textarea as it is not numbers
Actual result: "ab"
Masks are not applied to textareas
JSFiddle
Problem one Steps to recreate: Write "1234" in the textarea. Excepted result: "1234" Actual result: "3412" After two chars the cursor is moved to the start of the textarea
Problem two Steps to recreate: Write "ab" in the textarea Expected result: Empty textarea as it is not numbers Actual result: "ab" Masks are not applied to textareas