I want to use CSS to make a input-checkbox look like a gliphycon that changes every time that its clicked. Currently using the code here:
.glyphicon:before {
visibility: visible;
}
.glyphicon.glyphicon-download:checked:before {
content: "\e013";
}
input[type=checkbox].glyphicon {
visibility: hidden;
}
<!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">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<label class="checkbox-inline"><input type="checkbox" class="glyphicon glyphicon-download" value=""/>
To Download
</label>
</body>
</html>
This works great on Google Chrome, but not Firefox or IE. Any ideas as to why it is happening and how to fix it?