Thanks Ricardo. Excellent, that did the trick.
Can I ask you one more thing?
1. Before I put all the code into a plugin, I used to have it like
this:
$("#checkoutForm form").livequery(function() {
$(this).ajaxForm(options);
});
2. Now with the plugin I bind it this way:
$("#checkoutForm
Not sure that this is it, but
$.fn.myplugin = function(options) {
return this.find('form').ajaxForm();
});
?
On Jan 6, 1:59 pm, yellow1912 wrote:
> Hi all, I have a question regarding jquery object:
>
> if I bind my plugin like this:
>
> $('#myButton').myplugin();
>
> And inside my plugin
2 matches
Mail list logo