选择器
来源:互联网 发布:MAC maven安装配置 编辑:程序博客网 时间:2024/06/06 13:18
<div class="op_exactqa_page" style="display: block;">
<div class="btn-group">
<button type="button" class="op_exactqa_tag_item OP_LOG_BTN btn btn-default">1</button>
<button type="button" class="btn btn-default">2</button>
<button type="button" class="btn btn-default">3</button>
<button type="button" class="btn btn-default">4</button>
<span type="text" class="btn "> ...... </span>
<button type="button" class="btn btn-default">96</button>
<button type="button" class="btn btn-default">下一页</button>
</div>
<div class="btn-group">
<button type="button" class="op_exactqa_tag_item OP_LOG_BTN btn btn-default">1</button>
<button type="button" class="btn btn-default">2</button>
<button type="button" class="btn btn-default">3</button>
<button type="button" class="btn btn-default">4</button>
<span type="text" class="btn "> ...... </span>
<button type="button" class="btn btn-default">96</button>
<button type="button" class="btn btn-default">下一页</button>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$(".op_exactqa_tag_item").click(function(){
//jquery选择器to thi
var str="."+$(this).parent().attr("class")+">.op_exactqa_tag_item";
$(str).removeClass("op_exactqa_tag_selected");
//$(".op_exactqa_tag_stat0>.op_exactqa_tag_item").removeClass("op_exactqa_tag_selected");
$(this).addClass("op_exactqa_tag_selected");
});
});
</script>
0 0
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器(
- $选择器
- 选择器
- 选择器
- 选择器
- c++上级实验6--数组合并
- 重绘机制 导致绘制的控件重叠
- 第十一周项目2(1)
- 在MFC中用halcon读图像,显示在主窗口和picture control中
- struts2下无法用直接通过路径访问.jsp的页面
- 选择器
- BIRT中表格隔行换颜色效果
- Service
- HDU 1057 模拟
- OC里Self的应用
- CoreData简单地的使用
- Leetcode 350. Intersection of Two Arrays II
- IPC通信之-管道
- poj 1011 经典的剪枝