Tech World
Monday, June 2, 2008
Trim Function
function strtrim()
{
return this.replace(/^\s+/,'').replace(/\s+$/,'');
}
String.prototype.trim = strtrim;
usage
if(document.getElementById(FinalControlID1).value.trim()=="")
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2020
(1)
►
April
(1)
►
2019
(1)
►
July
(1)
►
2018
(1)
►
October
(1)
►
2015
(2)
►
October
(1)
►
August
(1)
►
2013
(3)
►
September
(1)
►
August
(1)
►
January
(1)
►
2012
(5)
►
February
(5)
►
2011
(1)
►
December
(1)
►
2010
(16)
►
November
(2)
►
September
(6)
►
August
(4)
►
May
(1)
►
January
(3)
►
2009
(8)
►
July
(1)
►
May
(2)
►
April
(2)
►
March
(1)
►
February
(1)
►
January
(1)
▼
2008
(47)
►
December
(2)
►
November
(2)
►
October
(8)
►
September
(13)
►
August
(3)
►
July
(3)
▼
June
(15)
javascript: Validate date and time like(12:12:12am...
date Comparision
View State
Session State
Javascript:Phone Number
Javascript:Phone number
javascript:Email Check
Javascript: Email Check
javascript:DOB Check
javascript: Enter only integer Value
Javascript: Check Date Format in TextBox
Javascript:Url Checking
Javascript:check length of textarea
Trim Function
Javascript: rounding to 2 decimal places
►
January
(1)
About Me
Rajat Goyel
View my complete profile
No comments:
Post a Comment