Jump to content

event.stopPropagation(), or something that stops child divs from onclick event


shortysbest

Recommended Posts

I have a div that has another div inside, the parent div has an onclick to use ajax to load the child div, and then in the child div are buttons, (ajax divs) to enter data into the database, however when i click on the buttons it just requests the div information again, so the buttons do not work. (they do in fact work outside of the div).

 

i read that event.stopPropagation() is suppose to stop this.?

 

I'm not sure how i would go about this,. Onclick="event.stopPropagation()"? or onclick="stopPropagation()"? im not sure.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.