1

I am new to Javascript event handling, today I have encountered an issue for click event,

<div class="col-md-12" onclick='editField(1,1);'>
   <label></label>
   some more stufff
   <button onclick='remove(1,1);'>remove</button>
</div>

Now, When I click on the button, the remove functions called then the editField function too. I know why it called...

I want to prevent the editField function when the button gets clicked.

Thanks in advance!

Amey Damle
  • 69
  • 1
  • 6
  • 1
    use [stopPropagation](https://www.w3schools.com/jquery/event_stoppropagation.asp) – Azad Sep 27 '18 at 06:15

0 Answers0