开发者

OnClick, show div, then jump to the correct position

开发者 https://www.devze.com 2023-02-18 12:10 出处:网络
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?

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

精彩评论

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