I am getting a piece of HTML code from a plugin and I Maybe Instead of doing all this, why Or, if you insist on jQuery: & lt; All instances of span class want to change in the code = "post-statistics" & gt;
to
P class = "post-stats" & gt; What is the best way to achieve this?
replacewith () work?
$ ('span.post-status'). Replacewith (function () {return '& lt; p class = "post-stats">' + $ (this) Html () + '';});
& lt; Span & gt; a
& lt; P & gt; with CSS? It should be enough by adding it to your stylesheet.
span.post-status {display: block; }
$ ('span.post-status'). CSS ('display', 'block');
Comments
Post a Comment