Hi guys,
If you can help me out with this I'll be eternally grateful!
I have a page with a number drop down on it...the user selects a number and the form i need to validate is generated x times (with x being the number selected).
The form is basically a group of date fields.
so, if the user selects 2 in the drop down, a div on the page is populated with:
p_day1 / p_month1 / p_year1
p_day2 / p_month2 / p_year2
This all works fine and I can pass the values from the form to my database in the back end using ASP.
However, if I try and do any kind of Javascript validation on the page (before the form submits) it can't see the p_ objects above. Although they are displaying in the browser, if I view source they are not there either. I presume this is because I am dynamically generating them??
I really want to carry out validation via an AJAX/Javascript function I have but if I can't retrieve those above fields using documet.getElementById('p_day1').... etc I'm screwed!!
Any ideas!?!?
If you can help me out with this I'll be eternally grateful!
I have a page with a number drop down on it...the user selects a number and the form i need to validate is generated x times (with x being the number selected).
The form is basically a group of date fields.
so, if the user selects 2 in the drop down, a div on the page is populated with:
p_day1 / p_month1 / p_year1
p_day2 / p_month2 / p_year2
This all works fine and I can pass the values from the form to my database in the back end using ASP.
However, if I try and do any kind of Javascript validation on the page (before the form submits) it can't see the p_ objects above. Although they are displaying in the browser, if I view source they are not there either. I presume this is because I am dynamically generating them??
I really want to carry out validation via an AJAX/Javascript function I have but if I can't retrieve those above fields using documet.getElementById('p_day1').... etc I'm screwed!!
Any ideas!?!?