You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The asking person tried to use the code provided in the foreach documentation page and the code was failing in a strange way because the code assumed the use of jquery.
The example had a list of item and a button that adds an item to the list providing a highlight effect to the added element.
Without jquery the new element is added, but the afteradd function fails because $ is undefined.
If the user clicks again the button then two elements are appended, three for the next click and so on.
This stackoverflow question reveals a bug in the way that the afterAdd works.
The asking person tried to use the code provided in the foreach documentation page and the code was failing in a strange way because the code assumed the use of jquery.
The example had a list of item and a button that adds an item to the list providing a highlight effect to the added element.
Without jquery the new element is added, but the afteradd function fails because $ is undefined.
If the user clicks again the button then two elements are appended, three for the next click and so on.
see the Fiddle provided in question.
The text was updated successfully, but these errors were encountered: