I need a validation that contain enter space.
var addname = /^[0-9a-zA-Z\.,'";:& ]+$/;
if(!(adres.value.match(addname))) {
document.getElementById("ad").innerHTML="Feild Ruquired! only characters A-Z,0-9, a-z,and ',.;&:' are acceptable";
chk="false";
}
I use this code and it's working but when I press the enter button and write something in textarea field I get this error:
Feild Ruquired! only characters A-Z,0-9, a-z,and ',.;&:' are acceptable
so I enter and write more description in a textarea field, like
1-somethong
2-something etc.