Re: [jQuery] Cascading data into text input boxes - thanks

2007-02-17 Thread Bruce MacKay
Thanks Sam and Kristinn - really excellent help and solutions - I learnt a lot as well! Regards, Bruce At 03:48 a.m. 17/02/2007, you wrote: I did something similar once, so I just made some changes this should work: $( function () { $([EMAIL PROTECTED]).change( function() {

[jQuery] Cascading data into text input boxes

2007-02-16 Thread Bruce MacKay
Hi folks, I have a set of n paired text input boxes (date on; date off). Each is attached to Kelvin Luck's date picker plugin. In most instances, the date off will be 7 days after the date on, and the next date on will be 1 day after the preceding date off. So, to help the user (so that

Re: [jQuery] Cascading data into text input boxes

2007-02-16 Thread Sam Collett
On 16/02/07, Bruce MacKay [EMAIL PROTECTED] wrote: Hi folks, I have a set of n paired text input boxes (date on; date off). Each is attached to Kelvin Luck's date picker plugin. In most instances, the date off will be 7 days after the date on, and the next date on will be 1 day after

Re: [jQuery] Cascading data into text input boxes

2007-02-16 Thread Kristinn Sigmundsson
I did something similar once, so I just made some changes this should work: $( function () { $([EMAIL PROTECTED]).change( function() { var reg = /date(on|off)(\d+)/i; var ar = reg.exec($(this).attr(id)); //id=dateoff3 = ar = [dateoff3, off, 3]