Reputation: 15807
Hi,
I try to show a div on click and then jump to its position but can´t get the onClick event to work?
Pleas have a look here : http://jsfiddle.net/snowman/ZsKHt/
BestRegards
Upvotes: 0
Views: 960
Reputation: 50177
$(#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.
Upvotes: 1
Reputation: 2426
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>
Upvotes: 1