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

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -