title: How to disable click selected datatable jquery?
body: <p>I've use datatable jquery with child-row. Normal, I selected a main row, i use</p>
  
  <pre><code>$('#table tbody').on('click', 'tr', function () {
              if ($(this).hasClass('selected')) {
                  $(this).removeClass('selected');
                  //do this
              }
              else {
                 table.$('tr.selected').removeClass('selected');
                 $(this).addClass('selected');
                 //do this
              }
          });
  </code></pre>
  
  <p>When use this, i click any child-row, it effect together. Now, i want to don't click to child-row, how can i do it, using javascript or jquery ?
  Look at the picture sample. 
  <a href="https://i.stack.imgur.com/9mrXH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9mrXH.png" alt="enter image description here"></a></p>