RamsLessonsLearnt
Friday, December 19, 2008
Replace Javascript Function
Javascript Replace replaces only the 1st occurance
The below is replaceall function
function replaceAll(subject, search, replacement) {
return subject.split(search).join(replacement);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment