-
Notifications
You must be signed in to change notification settings - Fork 0
/
Задание 62.html
33 lines (30 loc) · 948 Bytes
/
Задание 62.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Задание 62.</title>
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
</head>
<body>
<select name="radio1" id="select1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<input type="radio" name="forSel" value="1">
<input type="radio" name="forSel" value="2">
<input type="radio" name="forSel" value="3">
<input type="radio" name="forSel" value="4">
<input type="radio" name="forSel" value="5">
<script type="text/javascript">
$('#select1').on('change',function(){
$(':radio[value='+$(this).val()+']').prop('checked',true);
});
</script>
</body>
</html>