javascript - framework 7 on click event work at <div class=“toolbar-inner”> </div> but not outside -
html code
<div class="toolbar toolbar-bottom" id=""> <div class="myprogress2" id="myprogress2" style="background-color: grey; width:100px;margin-left: 10px"> <div id="mybar2" class="mybar2" style="width: 3%;height: 10px;background-color:white;"></div> </div> <div class="toolbar-inner"> <div class="myprogress2" id="myprogress2" style="background-color: grey; width:100px;margin-left: 10px"> <div id="mybar2" class="mybar2" style="width: 3%;height: 10px;background-color:white;"></div> </div> </div>
look @ above code image. use same code @ top div onclick not working , bellow div onclick working
js (framework 7) code
$$('.myprogress2').on('click', function (e) { myapp.alert('tab'); });
i try jquery function normal js event listener. got same result. please me
Comments
Post a Comment