Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


checkbox not working with bootstrap in anularjs


checkbox not working with bootstrap in anularjs  using -'html,css,angularjs,twitter-bootstrap,checkbox'

I have a Checkbox which is not getting checked if I keep it inside the div tag

<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<label class="lbl" for="a">Fee</label>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
<input type="checkbox" id="a" ng-model="x.y" />
</div>


where as it works perfectly when I remove it from the div tag.

<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<label class="lbl" for="a">Fee</label>
</div>
<input type="checkbox" id="a" ng-model="x.y">


Why is it so?
How can div tag affect the behavior of check-boxes.
Note: I am not using any inline style nor am I overloading any pre-defined class.
    

asked Oct 19, 2015 by sumit_jaiswalmca
0 votes
8 views



Related Hot Questions



Government Jobs Opening


...