Created
December 4, 2019 23:19
-
-
Save nmay231/e60ede8015280baa495b31f1c56d82bc to your computer and use it in GitHub Desktop.
Vanilla Bootstrap still works
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<link | |
rel="stylesheet" | |
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" | |
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" | |
crossorigin="anonymous" | |
/> | |
</head> | |
<body> | |
<div class="d-flex"> | |
<div | |
class="btn-group btn-group-toggle mx-auto mt-5" | |
data-toggle="buttons" | |
> | |
<label class="btn btn-secondary active"> | |
<input type="radio" name="options" id="option1" checked /> Active | |
</label> | |
<label class="btn btn-secondary"> | |
<input type="radio" name="options" id="option2" /> Radio | |
</label> | |
<label class="btn btn-secondary"> | |
<input type="radio" name="options" id="option3" /> Radio | |
</label> | |
</div> | |
</div> | |
<script | |
src="https://code.jquery.com/jquery-3.4.1.slim.min.js" | |
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" | |
crossorigin="anonymous" | |
></script> | |
<script | |
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" | |
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" | |
crossorigin="anonymous" | |
></script> | |
<script | |
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" | |
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" | |
crossorigin="anonymous" | |
></script> | |
<script> | |
$(document).ready(() => { | |
$("input").change(e => { | |
console.log(e.target); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment