Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • OP asked how to manipulate href attribute. Also, why use jQuery here? Commented Jan 16, 2017 at 0:54
  • I edited my answer now, thanks for reminding. I added comments on how to set and get the href attribute. I'm using jQuery here because OP tagged jQuery on this question. Commented Jan 16, 2017 at 1:12