Dynamic error message
OK, I am new to this community, but I have exhausted my other resources.
I have hacked at this code for a good part of three days and I am hitting a wall.
I m rewriting the date validation routines for an aging application as there are several separate stand-alone scripts to do it.
I have things about 95% done, but I am getting hung up on one jQuery call.
The line I am having a problem with is:
The preceding line:
Works just fine.
The inDate is a passed div reference for the input box itself.
A sample control is as follows:
Any ideas?
I have hacked at this code for a good part of three days and I am hitting a wall.
I m rewriting the date validation routines for an aging application as there are several separate stand-alone scripts to do it.
I have things about 95% done, but I am getting hung up on one jQuery call.
The line I am having a problem with is:
$(inDate).siblings('.error').append("The date is a required field.");
The preceding line:
$(inDate).parents('.datebox').css('backgroundColor','red');
Works just fine.
The inDate is a passed div reference for the input box itself.
A sample control is as follows:
(div class="datebox" id="lte")(div class="error")(/div)
Date prior to or equal to today: (input type="text" name="datebox1" id="datebox1" size="12" /)(br /)
(/div)
Any ideas?
