[jQuery] Re: recursive dom walker

2009-05-07 Thread AndyCramb
); }); return matches; On May 7, 11:33 am, AndyCramb wrote: > Thanks it works(returns the wrapped set and allows chaining) when I > return the selector straight away from within the plugin but when I > try and return a filtered set > > $.recurse({source:"a_1"

[jQuery] Re: recursive dom walker

2009-05-07 Thread AndyCramb
$('.selector').recurse > > You'd have to call $.recurse > > You can implement a pretty quick fix, if you don't plan on doing much > else with the function. Try: > > $.recurse = $.fn.recurse = function(options){ >     ... > > } > > On May 6, 3:51 p

[jQuery] Re: recursive dom walker

2009-05-06 Thread AndyCramb
nction is not a method of the jQuery.fn object, so it > can't work on elements. > > The line: > > $.recurse = function(options) { > > should be > > $.fn.recurse = function(options) { > > On May 6, 9:00 am, AndyCramb wrote: > > > I am trying to wri

[jQuery] recursive dom walker

2009-05-06 Thread AndyCramb
I am trying to write a plugin that will eventually match a specific string pattern on the id attribute of all form element(s) I aim to get a collection of all elements that I want to return for chaining I generate a regular expression on the fly based on the arguments passed in and use this to fin

[jQuery] Re: Form validator - cross field validation

2009-04-15 Thread AndyCramb
009 at 10:08 PM,AndyCramb wrote: > > > Thanks for getting back to me > > I have the id specified > > > > id="source"/> > > > It just had wrapped on to the new line > > Sorry I could not find away of formatting the code I pasted in so it > &g

[jQuery] Re: Form validator - cross field validation

2009-04-14 Thread AndyCramb
ot;source" to that input... > > Jörn > > On Tue, Apr 14, 2009 at 6:33 PM, AndyCramb wrote: > > > Hi, > > > I am trying the forms validation plugin and cannot figure out where I > > am going wrong with it > > I can get cross validation working aginst

[jQuery] Form validator - cross field validation

2009-04-14 Thread AndyCramb
Hi, I am trying the forms validation plugin and cannot figure out where I am going wrong with it I can get cross validation working aginst a checkbox but I am unable to get it working against an input box HTML is supplied below The rules metadata is below the HTML Any help is much appreciated And