Thursday, 3 September 2015
Function Jquery untuk left dan right
Function Jquery untuk left dan right
function Left(str, n){
if (n <= 0)
return "";
else if (n > String(str).length)
return str;
else
return String(str).substring(0,n);
}
function Right(str, n){
if (n <= 0)
return "";
else if (n > String(str).length)
return str;
else {
var iLen = String(str).length;
return String(str).substring(iLen, iLen - n);
}
}
Subscribe to:
Post Comments (Atom)
Categories
- CSS (2)
- error (1)
- image_resizing (1)
- JavaScript (1)
- Jquery (3)
- PHP (4)
- responsive file manager (1)
- SQL SERVER 2008 (5)
- thumbs (1)
- Tips (1)
- Tools (1)
- Windows (3)
TIPZ Beatrice
My Favorite site
Translate
Followers
Beatrice Aracelia Tan. Powered by Blogger.
0 komentar:
Post a Comment