shortysbest Posted July 13, 2010 Share Posted July 13, 2010 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 https://forums.phpfreaks.com/topic/207577-eventstoppropagation-or-something-that-stops-child-divs-from-onclick-event/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.