[jQuery] Re: A question regarding jquery object

2009-01-06 Thread yellow1912
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

[jQuery] Re: A question regarding jquery object

2009-01-06 Thread Ricardo Tomasi
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