having a problem using regular expression to allow only certain characters. The problem is when i try to insert a character into words to correct errors. When i try to insert the new char the cursor move to the end of the input box.
this is the code i use:
$('body').on('input','.info',function() {
this.value = this.value.replace(/[^a-zA-Z0-9+&,*_\- \b \r ]/g, '');
Any hints?
Thank you in advance