by
3 7
0
3
789
0
Top 5% !
Popular
Specified
Popularity: 61560th place
No tags for this snippet yet.
LanguageJavaScript
SourceGitHub
SourceMyGists

wrap to text a link

wrap to text a link: 
link_a_wrap.js
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1411665/wrap-to-text-a-link?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
$(".product-categories li a").each(function () { var $hreftext = $(this).children().remove(); var hreftext1 = $(this).text(); $(this).text("").append($hreftext).append($("<div>" + hreftext1 + "</div>")); });
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus