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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -