How do i remove the character “,” from a div. for example,
<div class="something">This, is, the, text. </div>
Now i want to remove all the “,”s from that div using javascript.
Please forgive me for being too noob in javascript.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check this example out:
http://jsfiddle.net/QpJNZ/
Update:
This is how to make this work for more than one element.
Check this example out:
http://jsfiddle.net/VBEaQ/2/