title: OnClick Event Triggered on button click and Division, that button is inside that DIV
body: <p>I am new to Javascript event handling, today I have encountered an issue for click event,</p>
  
  <pre><code>&lt;div class="col-md-12" onclick='editField(1,1);'&gt;
     &lt;label&gt;&lt;/label&gt;
     some more stufff
     &lt;button onclick='remove(1,1);'&gt;remove&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, When I click on the button, the remove functions called then the editField function too. I know why it called...</p>
  
  <p>I want to prevent the editField function when the button gets clicked.</p>
  
  <p>Thanks in advance!</p>