loading...

re: Checking if an input is empty with CSS VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Try pattern=“\S+“ which means has to contain 1 or more non-white-space characters
 

Since pattern works like new RegExp('^'+pattern+'$'), this won't work if there are white-space characters in the input value.

code of conduct - report abuse