jQuery:“显示所有评论";点击&隐藏成功吗? [英] jQuery: "show all comments" click & hide at success?

查看:81
本文介绍了jQuery:“显示所有评论";点击&隐藏成功吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在有这个:

<a href='javascript:showComments($displayWall[id]);' style='cursor: pointer;'>Show all $isThereAnyComments comments</a>

在showComments中成功时,我希望它显示此div:

On success in showComments, i want it to show this div:

#showWallCommentsFor + wallID

然后在显示时,应将显示全部"更改为关闭",然后应隐藏div.我该怎么办?

And then when it shows, then it should change "Show all" to "close" and then it should hide the div. How can i do this?

推荐答案

我的建议是快速浏览一些jQuery教程,因为一旦您了解了所描述的功能,它们的组合就应该非常简单一些示例,并且已经了解了基础知识.

My suggestion would be to have a quick go at some jQuery tutorials, as the functionality you're describing should be very simple to put together once you've seen a few examples and have understood the basics.

http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery

http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery

http://www.w3schools.com/jquery/default.asp

这篇关于jQuery:“显示所有评论";点击&amp;隐藏成功吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆