FA21-bcs-A Q2
Describe what is event bubbling in JS with an example also describe how can you bind an event to the tags which are added after page load.
Suppose you have following end point
| http://usmanlive.com/wp-json/api/stories | GET | – | – | Returns an array of stories |
prepare an ajax api call and on its success send the delete request to delete first story. See below end poit
| http://usmanlive.com/wp-json/api/stories/:id | DELETE | – | – | Replace :id with the id of the story to Delet |