I am trying to detect spaces on textarea my code is following
textarea.value.replace(/\s/g, ' ');
but it detects all whitespaces and I want to detect only spaces...
is any solution??
I am trying to detect spaces on textarea my code is following
textarea.value.replace(/\s/g, ' ');
but it detects all whitespaces and I want to detect only spaces...
is any solution??