Shp*_*ord 0 javascript jquery jquery-selectors
这是我的HTML:
<ul>
<li>
<p><label><input type="checkbox" name="permission" value="1" class="permission_check" checked> Joe Schmoe</label></p>
<p class="radio_option"><label><input type="radio" name="viewpromote" value="1"> View and Promote</label></p>
<p class="radio_option"><label><input type="radio" name="createedit" value="1" checked> ...plus Create and Edit</label></p>
</li>
<li>
<p><label><input type="checkbox" name="permission" value="1" class="permission_check" checked> Bob Smith</label></p>
<p class="radio_option"><label><input type="radio" name="viewpromote" value="1" checked> View and Promote</label></p>
<p class="radio_option"><label><input type="radio" name="createedit" value="1"> ...plus Create and Edit</label></p>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
我需要做的是当用户检查/取消选中permission_check输入时,它应该显示/隐藏该radio_option列表项的元素.
| 归档时间: |
|
| 查看次数: |
144 次 |
| 最近记录: |