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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.