Prevent row click event in YUI Datatable -


i have yui data table. when click on row of data table, there alert box.

vtgttbl.on('rowclickevent',function(oargs){     alert("a"); } 

i have checkbox. want when checkbox true row click work, , not when false. there method in yui attach , detach these events

within rowclick event handler callback can add check checkbox in following way

vtgttbl.on('rowclickevent',function(oargs){         var checkboxnode = y.one('#checkboxid');     if (checkboxnode.checked) {         alert("a");     } } 

hope solves problem.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -