Use JavaScript to Replace Classname Value
Posted
by
user1515425
on Stack Overflow
See other posts from Stack Overflow
or by user1515425
Published on 2012-09-01T04:54:18Z
Indexed on
2012/09/01
21:38 UTC
Read the original article
Hit count: 280
JavaScript
|classname
I want to replace every occurrence of the numbers with the string: ???
.
Here is an example string:
<em>Chelsea</em> 1-4 Atletico Madrid
How can I do this in JavaScript?
<a href="https://www.google.com/url?sa=t&source=web&cd=9&cad=rja&ved=0CFEQtwIwCA&url=http%3A%2F%2Fwww.whoateallthepies.tv%2Fchelsea%2F137070%2Fsuper-cup-chelsea-1-4-atletico-madrid-falcao-on-fire-as-blues-flop-in-monaco-photos-highlights.html&rct=j&q=chelsea&ei=1odBUImpBIWA0AWM1oC4BA&usg=AFQjCNEwdCCckt15XTkHSAf2fsUnGk9IJg&sig2=IOrD6hfMrviW9ods0DG2dw" class="l" onmousedown="return rwt(this,'','0','','9','AFQjCNEwdCCckt15XTkHSAf2fsUnGk9IJg','IOrD6hfMrviW9ods0DG2dw','0CFEQtwIwCA',null,event)" title="Super Cup: Chelsea 1-4 Atletico Madrid – Falcao On Fire As Blues Flop In Monaco (Photos ...">Super Cup: <em>Chelsea</em> 1-4 Atletico Madrid – Falcao On <b>...</b></a>
Thanks in advance.
© Stack Overflow or respective owner