Well like the title says, how can i check it?
i have started something like this:
for (var i = 0; i < elm.val().length; i++) {
if (elmVal.charAt(i) !== '') {
//do something
}
}
For example:
if the string is: “g g g” OR “gg g ” it should be illegal.
You can split the string and check word one by one