jquery如何将a标签隐藏了


当前第2页 返回上一页

示例:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>php中文网</title>

<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">

</script>

<script>

$(document).ready(function(){

$(".btn1").click(function(){

$("a").hide();

});

$(".btn2").click(function(){

$("a").show();

});

});

</script>

</head>

<body>

<a href="https://www.php.cn/">php中文网</a>

<button class="btn1">隐藏</button>

<button class="btn2">显示</button>

</body>

</html>

以上就是jquery如何将a标签隐藏了的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

jQuery如何判断时间戳星期几

jQuery css()和attr()的区别是什么

jQuery如何设置不可点击

jQuery如何设置按钮灰色不可用

jQuery怎么样判断文件是否存在

怎么解决jQuery ajax失败问题

jQuery如何判断浏览器是否是ie6

jQuery怎样才能确定滚动事件的方向

jQuery怎么判断radio是否选中

jQuery怎么判断对象是否为空

更多相关阅读请进入《jQuery》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...