removeattr scroll-sel和Add atriv

时间:2013-08-23 15:40:40

标签: javascript jquery

我喜欢Javascript for remove

<ul class="selection-list sel-scroll sel-items js-items-unchecked">

仅删除(自动滚动)

然后在下面添加此代码

此代码

<link rel="stylesheet" type="text/css" media="all" href="js/jScrollPane.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/jScrollPane.js"></script>
<script type="text/javascript">
    $(function()
    {
        $('#pane1').jScrollPane({showArrows:false,scrollbarWidth:10, scrollbarMargin:20});
    });
</script>

1 个答案:

答案 0 :(得分:0)

看起来你正在使用jQuery。因此你可以这样做:

$('#elementID').removeClass('sel-scroll');

另请参阅:

$('.sel-scroll').removeClass('sel-scroll');