嗨,当我单击单选按钮时,它总是选中。我无法取消选中正在搜索的单选按钮并尝试如何在单击时选中/取消选中单选按钮?这个链接。
问题
我只能检查一次,一旦我单击取消选中它总是取消选中无法正常工作代码
<input value='' type='radio' id='one' onClick="getCurrentLocation()"/>
$('input[type=radio]').click(function(){
if (this.previous) {
this.checked = false;
}
this.previous = this.checked;
});