3
rated 0 times
[
5]
[
2]
/ answers: 1 / hits: 20540
/ 13 Years ago, tue, may 3, 2011, 12:00:00
Suppose I have string variable such as:
var a = xxxxxxxxhelloxxxxxxxx;
or:
var a = xxxxhelloxxxx;
I want to insert world
after hello
.
I can't use substr()
because the position is not known ahead of time. How can I do this in JavaScript or jQuery?
More From » string