I have a simple jQuery script that I\'m trying to build upon but I can\'t get the href string comparison to return true:
jQuery objects don't have an href property. Just access the property of the HTMLAnchorElement using this.href instead of creating a new jQuery object with $(this).
href
this.href
$(this)