Response title
This is preview!
And this is my html button:
Plus once the regular .
Don't use alert() for debugging. It is evil! It will stop all asynchronous events. It blocks the UI until the user responds. Use console.log() for debugging.alert(result);
This means:Plus once the regular .
Use console.log() for debugging.
This means:
When I doesn't add something the ajax posts one time. Every element I'll add, the ajax posts the number of the elements + the post it should do.
The post may be executed only once.
Before I had the problem that the functions are not working when I load content via ajax.
I think this is a beginner problem.
If anyone has the same problem: I had to change all functions to this
style. I don't know why, but it works great.
© 2013 jQuery Foundation
Sponsored by and others.