Change all span-tags into label-tags with Javascript? -
What do I do: Call an unload-function to change
& lt ; Span & gt; Some content & lt; / Span & gt;
In
& lt; Label & gt; Some content & lt; / Label & gt;
Is it possible to replace a span-tag in labels-tags with javascript? If this is possible how can I do this?
Thnx,
... doro
and If you are using jQuery, you can use the replacement ()
jQuery.each ($ ("span"), function () {$ (this). "& Lt; label & gt;" + $ (this) .text () + "& lt; / label & gt;");});
More info:
Comments
Post a Comment