javascript - Get a complete a tag and not only the href attribute -


i going through string container tags contains.

var links = container.find("a");             links.each(function(i, txt){    alert(txt); //shows http://some.com instead of <a href="http://some.com">some</a> }); 

any idea how solve one? thanks

try -

alert(this.outerhtml); 

Comments

Popular posts from this blog

c++ - protocol buffers - generate NON-inline accessors -

c# - issue attaching/adding an entity object which is detached from the DB Context? -