Create new div arround anchor link when clicked

Posted by c0mrade on Stack Overflow See other posts from Stack Overflow or by c0mrade
Published on 2010-03-19T21:34:02Z Indexed on 2010/03/19 21:41 UTC
Read the original article Hit count: 167

Filed under:
|

How can I achieve this behaviors onclick with jquery :

default state:

<a href="something.html">Anchor</a>

click state

<div class="highlight">
<a href="something.html">Anchor</a>
</div>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript