Is there a way to identify the specific dynamically added checkbox that was clicked, whether by index or name? I came across a similar question with a solution in this JSFiddle: JSFiddle
Instead of just displaying "clicked", I would like it to show something like "This is the 3rd checkbox". Is this achievable?
I attempted to use $(this).index()
, but so far I have not been successful.