troubleshooting Question

Jquery fire function problem for elements added via ajax

Avatar of Panos
PanosFlag for Germany asked on
jQueryJavaScriptAJAX
34 Comments1 Solution1056 ViewsLast Modified:
Hello experts.
I'm using this plugin:
http://code.google.com/p/ajax-upload/

The script is working fine.
The problem i have is that when i add via ajax new UploadButton 's the function is not fireing.
To fire functions for new added elements via ajax i'm using  : $("body").on("something",........ .
How can i do it in this case?
$(".UploadButton").ajaxUpload({
url : "upload.php",
name: "file",
onSubmit: function() {
.....
},
onComplete: function(result) {
.....
}
});
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 34 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 34 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros