I want to perform action in javascript on detecting double click. Can you please let me know the same? This is a complex control combining label+ checkbox.
<td class=" odd" title="Double click to edit.">
<label class="cb_label_right">
<input id="check1_table#rowName#0" type="checkbox" data-ctrl="JSCtrl" disabled="">
<span>Row Name</span>
</label>
tablecell.ondblclick = function(){alert( "Double Clicked" );};
In the above line, if I click on label; double click is detected but not on checkbox
<input type="checkbox" disabled="disabled" />
<span>Fat Lock11</span>
<div style="position:absolute; left:0; right:0; top:0; bottom:0;">
</div>
The above code is working for sample code. I am new to Javascript, how to convert to Javascript as a single line