It happens that I have a parent div which calls a function sending in this two parameters (one of these is 0 since it will be fixed) and within this div I have several divs which call the same function but with the two dynamic parameters :
<div onclick='abrirUbicacion(ID1,0);'>
<div onclick='abrirUbicacion(ID1, ID2);'></div>
<div onclick='abrirUbicacion(ID1, ID2);'></div>
</div>
When I click on any of the internal divs it calls the function correctly sending both parameters well but immediately executes the function of the main div by sending the 0 as a parameter. What is this about? and how can I fix it?