jquery - Stoping propagation in checkbox -
i've been developing web application using ember 1.0 i've have de following checkbox:
<div class="col-md-2 chart-type"> <label class="checkbox margin-left5" style="margin: 5px 0px 5px 0px;"> <input type="checkbox" name="selectallsignals" id="selectallsignals" {{action selectallcharts "selectallsignals" target="view"}}/> </label> and i've following action:
selectallcharts : function(id){ var istocheck = $("#" + id).is(':checked'); /* */ }, when click in checkbox, function it’s called , if have break point see check mark in checkbox, problem when proceed execution checkbox uncheck.
i've put return false; stop propagation, no success.
em.checkbox might rightway go
{{view em.checkbox checkedbinding="ischecked"}} and
checkeddidchange: function(){ // alert(this.get('ischecked')); //some stuff here }.observes('ischecked')
Comments
Post a Comment