OnClick, show div, then jump to the correct position
Hi,
I try to show a div on click and then ju开发者_StackOverflow社区mp to its position but can´t get the onClick event to work?
Pleas have a look here : http://jsfiddle.net/snowman/ZsKHt/
BestRegards
$(#reply) should be $('#reply') in quotes, and you need to switch the jsfiddle select box on the left from Mootools to jQuery. Then click Run at the top and it will work.
Let me fix that for you (note the 's in the ID selector):
<a onclick="$('#reply').css('display', 'block');" href="#contactMail">
<div title="Maila annonsören">Test</div>
</a>
精彩评论