How to add a + (plus) between number(s) and a letter (character) with jQuery/Javascript after filling in form field?

Viewed 28

How to add a + (plus) between number(s) and a letter (character) with jQuery/Javascript?

(Address formatting)

So 14D or 14 D

Needs to be changed in: 14+D

It is a form field, so if someone types 14D or 14 D (for example) and tabs to the next form field the value is changed automatically to 14+D. It can be ANY number and ANY letter. So 123A -> 123+A, 4C -> 4+C, 3b -> 3+b etc.

Preferably front end, so it will change directly in the browser.

Thank you in advance.

0 Answers
Related