jQuery .load() - special feature that we should know


/ Published in: HTML
Save to your folder(s)

First, we select the link with an ID of #some_id, and prevent the default event from occurring (which would be to follow the link and load the target page). We grab the original destination of the link (by retrieving the href attribute of the link we clicked on), and pass it onto the load function.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.