【原创】jquery制作一款分类菜单选择器,点击弹出下拉菜单,三级联动选择器。适用于多分类菜单选择代码。
使用方法:
1、head引入css文件
<link rel="stylesheet" href="css/qrm-pinming.css">
2、body引入HTML代码
<!--品名开始-->
<div class="box">
<div class="qrm-pinming">
<div class="qrm-input-border">
<!--<span class="title">品名</span>-->
<input type="text" placeholder="请选择" class="qrm-input" style="width: 250px">
</div>
<!--<div class="qrm-pinming-panel" style="display:none">-->
<div class="qrm-border1" style="display:none">
<ul class="qrm-lev-1 qrm-lev">
<!--统料-->
<li class="active">
<span>我是一级01</span><i class="qrm-arrow-right"></i>
<ul class="li-zi-1" style="display: none">
<li>
<span>我是二级01</span><i class="qrm-arrow-right"></i>
<ul class="li-zi-2" style="display: none">
<li>
<span>我是三级1-1</span>
</li>
<li>
<span>我是三级1-2</span>
</li>
<li>
<span>我是三级1-3</span>
</li>
</ul>
</li>
<li>
<span>我是二级02</span><i class="qrm-arrow-right"></i>
<ul class="li-zi-2" style="display: none">
<li>
<span>我是三级2-1</span>
</li>
<li>
<span>我是三级2-2</span>
</li>
<li>
<span>我是三级2-3</span>
</li>
</ul>
</li>
<li>
<span>我是二级03</span><i class="qrm-arrow-right"></i>
<ul class="li-zi-2" style="display: none">
<li>
<span>我是三级3-1</span>
</li>
<li>
<span>我是三级3-2</span>
</li>
<li>
<span>我是三级3-3</span>
</li>
</ul>
</li>
<li>
<span>我是二级04</span>
</li>
</ul>
</li>
</ul>
<p class="clearfix"></p>
</div>
<div class="qrm-border2" style="display:none">
<ul class="qrm-lev-2 qrm-lev">
</ul>
<p class="clearfix"></p>
</div>
<div class="qrm-border3" style="display:none">
<ul class="qrm-lev-3 qrm-lev">
</ul>
<p class="clearfix"></p>
</div>
<div class="qrm-border4" style="display:none">
<ul class="qrm-lev-4 qrm-lev">
</ul>
<p class="clearfix"></p>
</div>
<p class="clearfix"></p>
<!--</div>-->
<p class="clearfix"></p>
</div>
</div>
<!--品名结束-->
<script src="js/jquery.min.js"></script>
<script src="js/qrm-pinming.js"></script>