In another question I came across two different ways of doing a string replacement.
One being the jQuery way $("#element").text().replace(',', '.')
and the other being the pure Javascript way of first getting the text and then calling .replace(/,/, '.')
.
Is there a big performance hit in using the jQuery method, or any other reason not to use it (assuming you already have jQuery on the page)?