I made a jQuery function that binds some fields, but it doesn't work when I add a new inline.
The main problem is that I don't know how to detect the insertion in DOM and bind it to my function.
I made a jQuery function that binds some fields, but it doesn't work when I add a new inline.
The main problem is that I don't know how to detect the insertion in DOM and bind it to my function.
$('.add-row a').click(my_function)
as long as my_function
does not include return false;
it shouldn't interfere with the existing functionality of that button
The suggestions above do not work for this particular problem. I'll file a bug and ask if they can assign an ID to that link button, or fix it another way.
Edit: bug filed https://code.djangoproject.com/ticket/16359