javascript - Adding special characters to a String using jQuery -


i have string cee0001 , want add + sign between each character of string.

eg: c+e+e+0+0+0+1

how do using jquery.

you can split string , join returned array +.

var s = 'cee0001'.split('').join('+'); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -