01.
<!DOCTYPE html>
02.
<html>
03.
<head>
05.
<meta charset=
"utf-8"
>
06.
<title>Jquery Un Checked RadioBox By Deawx</title>
07.
</head>
08.
<body>
09.
<div id=
"emptimfields"
>
10.
11.
12.
<fieldset data-role=
"controlgroup"
data-type=
"vertical"
id=
"emptim"
>
13.
14.
<input name=
"emptim"
id=
"radio1"
value=
"fromtimetotime"
type=
"radio"
openmrs-valuecoded=
""
/>
15.
<label
for
=
"radio1"
> นาย A</label>
16.
17.
<input name=
"emptim"
id=
"radio2"
value=
"allthetime"
type=
"radio"
openmrs-valuecoded=
""
/>
18.
<label
for
=
"radio2"
> นาย B</label>
19.
20.
<input name=
"emptim"
id=
"radio3"
value=
"dontknow"
type=
"radio"
openmrs-valuecoded=
""
/>
21.
<label
for
=
"radio3"
> นาย C</label>
22.
</fieldset>
23.
</div>
24.
<button>Uncheck</button>
25.
26.
<script type=
"text/javascript"
>
27.
$(
function
(){
28.
$(
'button'
).on(
'click'
,
function
() {
29.
$(
'input:radio[name=emptim]:checked'
).prop(
'checked'
, false);
30.
});
31.
});
32.
</script>
33.
34.
</body>
35.
</html>