You have a code:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><linkhref="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script><form><divclass="checkbox">
<label>
<input type="checkbox" checked="checked" />
Checkbox One
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"/>
Checkbox Two
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" data-toggle="toggle" checked="checked" />
Toggle One
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" data-toggle="toggle"/>
Toggle Two
</label>
</div>
<div>
<input type="reset" class="btn btn-default"/>
</div>
</form>
How do I get it if it is true
or false
, using Js
?