如何设置jquery的元素不能用


当前第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

25

26

27

28

<script>

$(document).ready(function() {

$("#target1").css("color", "red");

$("#target1").prop("disabled", true);

});

</script>

<!-- Only change code above this line. -->

<div class="container-fluid">

<h3 class="text-primary text-center">jQuery Playground</h3>

<div class="row">

<div class="col-xs-6">

<h4>#left-well</h4>

<div class="well" id="left-well">

<button class="btn btn-default target" id="target1">#target1</button>

<button class="btn btn-default target" id="target2">#target2</button>

<button class="btn btn-default target" id="target3">#target3</button>

</div>

</div>

<div class="col-xs-6">

<h4>#right-well</h4>

<div class="well" id="right-well">

<button class="btn btn-default target" id="target4">#target4</button>

<button class="btn btn-default target" id="target5">#target5</button>

<button class="btn btn-default target" id="target6">#target6</button>

</div>

</div>

</div>

</div>

相关免费学习推荐:javascript(视频)

以上就是如何设置jquery的元素不能用的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

如何设置jquery的元素不能用

更多相关阅读请进入《jquery元素》频道 >>




打赏

取消

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

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

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

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

评论

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