0007 added[Method chaining, if statements, switch statement, checkboxes, radiobuttons]
This commit is contained in:
29
html/checkBox.html
Normal file
29
html/checkBox.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<p id="p1">
|
||||
<label for="myCheckBox">Subscribe</label>
|
||||
<input type="checkbox" id="myCheckBox"><br>
|
||||
<button id="myButton">Submit</button>
|
||||
</p>
|
||||
<p id="p2">
|
||||
<label for="visa">Visa</label>
|
||||
<input type="radio" name="card" id="visa">
|
||||
<label for="paypal">PayPal</label>
|
||||
<input type="radio" name="card" id="paypal">
|
||||
<label for="master">Master</label>
|
||||
<input type="radio" name="card" id="master"><br>
|
||||
<button id="payButton">Go to checkout</button>
|
||||
</p>
|
||||
<p id="p3">
|
||||
</p>
|
||||
<script src="/js/checkBox.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user