Find a number from a string and remove in jQuery
Find a number from a string and remove in JQuery [js] var str="Sibeesh007" str.replace(str.match(/(\d+)/g)[0], ”).trim(); [/js] Here str is my string. I hope it helps.
Find a number from a string and remove in JQuery [js] var str="Sibeesh007" str.replace(str.match(/(\d+)/g)[0], ”).trim(); [/js] Here str is my string. I hope it helps.
[js] var num=’$100%’; $(‘div’).text(num.replace(/\,/g, ”).replace(/\$/g, ”).replace(/\%/g, ”)); [/js] Kindest Regards Sibeesh Venu
How to remove the spaces between the string in JQuery. [js] var str="Sibeesh Passion" var strAfter=str.replace(/\s/g, ”); [/js]