17-10-12, 01:30 PM
كاتب الموضوع : AhmedEssawy
كود :
function hasWhiteSpace(s)
{
reWhiteSpace = new RegExp(/^\s+$/);
// Check for white space
if (reWhiteSpace.test(s)) {
alert("Please Check Your Fields For Spaces");
return false;
}
return true;
}