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++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -