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

php - Global connection variable or new one every time -

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