Wednesday, January 18, 2012

this.href vs $(this).attr("href")

this.href -- returns the fully qualified URL
$(this).attr("href") -- returns the exact value of the "href" attribute
(see Stackoverflow discussion)

No comments:

Post a Comment