开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜