PHP Tutorial, PHP Help, Javascript Tutorial, Javascript Help, MySQL Tutorial, MySQL Help,Personal Wishes, Images,Download Tutorials,MySQL Downloads,Download Softwares.
Wednesday, March 24, 2010
Spare a Second to Help
Click on the below link & help the people who are in need......
Just click here
Just click here
Sunday, March 7, 2010
Validation for spaces in a textbox
function removeBlanks(s){
s = s.replace(/(^\s*)|(\s*$)/gi,"");
s = s.replace(/[ ]{2,}/gi," ");
s = s.replace(/\n /,"\n");
return s;
}
The function can be used to remove the spaces & validate a textbox.
s = s.replace(/(^\s*)|(\s*$)/gi,"");
s = s.replace(/[ ]{2,}/gi," ");
s = s.replace(/\n /,"\n");
return s;
}
The function can be used to remove the spaces & validate a textbox.
Subscribe to:
Posts (Atom)