Is it possible to add a live function on a plugin?
The jPikcer plugin wont work I create it from a .live(‘click’, function(e)
Example:
$(‘.Multiple’).jPicker();
Thanks,
Gino
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t use
.live()for this, the closest equivalent for this is the.livequery()plugin..live()is an event listener, listening for bubbling events, not new elements.Alternatively, you run the plugin with that selector and a context when you’re adding new elements, e.g. in a
$.ajax()request, something like this: