使用单选按钮按列表值过滤 [英] Using radio button to filter by list value

查看:90
本文介绍了使用单选按钮按列表值过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个单选按钮



I have three radio buttons

<input type="radio" name="test"><label>All</label>
<input type="radio" name="test"><label> Under 10$</label>
<input type="radio" name="test"><label >Between 10$ - 20$</label>

<li value=6.67>costs 6.67$</li>

<li value=15>costs 15$</li>

<li value=19>costs 19$</li>





我希望能够使用单选按钮根据值过滤此列表,即隐藏和取消隐藏



我尝试过:



我已经能够使用表



And I want to be able to filter this list according to the value using the radio buttons i.e hide and unhide

What I have tried:

I have been able to make the filter work using a table

推荐答案

< /标签>
< input type =radioname =test>< label>介于10之间
</label> <input type="radio" name="test"><label >Between 10


- 20


< /标签>

< li value = 6.67> 费用6.67
</label> <li value=6.67>costs 6.67


这篇关于使用单选按钮按列表值过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆