在用户选择日期但决定使用 jquery ui datepicker 输入日期后,应清除选中的单选。有没有办法用 Jquery 或 JS 做到这一点?
我希望在用户单击输入字段时清除选中的收音机(来自..)
`<li >
<input id="time1" type="radio" name="radiohide" >
<label for="time1" >Today</label>
</li>
<li >
<input id="time2" type="radio" name="radiohide" >
<label for="time2" >Yesterday</label>
</li>
<li >
<input id="time3" type="radio" name="radiohide" >
<label for="time3" >3 Days ago</label>
</li>
<li >
<input id="time4" type="radio" name="radiohide" >
<label for="time4" >4 Days ago</label>
</li>
<li>
<input type="text" id="datepicker" placeholder="From..."/>
</li>
<li>
<input type="text" id="datepicker1" placeholder="To..." />
</li>
$(function() {
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true
});
});
$(function() {
$( "#datepicker1" ).datepicker({
changeMonth: true,
changeYear: true
});
});`