Banshee
Banshee

Reputation: 15807

OnClick, show div, then jump to the correct position

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

Answers (2)

mVChr
mVChr

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

tiagoboldt
tiagoboldt

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

Related Questions