click here:
If you click on the text, the click will trigger on the inner div and bubble up to the outer div, the function will be executed 2 times.
To avoid this use stopPropagation()
click here:
click here:
click here: