dimanche 17 juillet 2016

Using Javascript to add a span around a decimal value


var value = 2.00

How can I add a span tag around the '.00', so that on my page I would end up with:

2<span>.00</span>

Please note that the '00' can be a different value. Depends on the data being injected.


Aucun commentaire:

Enregistrer un commentaire