I have the following jQuery shell that works:
$('.jq_noSpaces').on('change', function(){ alert('you changed the value in the box'); });
My form attributes id="username" name="username"
How to use the following jQuery replace function to automatically change the removal of spaces from an input field?
str.replace(/\s+/g, '');
thanks
source share