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() {
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
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
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]