John, >Tried it again with this code... > >jQuery.fn.j = function(){ > jQuery(this).filter(function(){ > return jQuery(this).attr("coop:manage") == "true"; > }); >}; > >jQuery('form').j().each(function(){alert(jQuery(this).attr('id'))}); > >This is what I modified in an attempt to get it to work... and it isn't >working. (Currently I have three forms and two should match.) > >Tried this also... > >jQuery.fn.jt = function(){ > jQuery(this).filter(function(){ > return jQuery(this).attr("coop:manage"); > }); >}; > >jQuery('form').jt().each(function(){alert(jQuery(this).attr('id'))}); > >Firebug says on both occasions that.... >jQuery("form").j() has no properties >jQuery("form").jt() has no properties > >I am trying to make this part of a plugin library.
Neither of those would work because you're not actually returning the results: jQuery.fn.j = function(){ return jQuery(this).filter(function(){ return jQuery(this).attr("coop:manage") == "true"; }); }; jQuery.fn.jt = function(){ return jQuery(this).filter(function(){ return jQuery(this).attr("coop:manage"); }); }; -Dan