Here is my fiddle showing my code so far : http://ift.tt/1GN0Cvf
Problem Description :
I am using event-delegation here, where on the click of a div I take the clicked div into an object and give user an option to give title to that div and then append that text to the div OR remove the component completely.
Now the problem is, I have two shapes here : Square and Circle. Now the event fires properly for Circle - the text appends successfully . Now when I click on the square and save the title for it , the text is appended to the circle only.
Why is the event not delegated or why is the text not getting appended to the square component ?
NOTE: I am saving the style of the whole event plan via $.POST and entering the attributes to the DB.
Aucun commentaire:
Enregistrer un commentaire