Re: Accessing QF_date elements from javascript (2nd and last try :)
| From: | Alexey Borzov | Date: | Wed, 19 May 2004 15:03:12 +0000 |
| Subject: | Re: Accessing QF_date elements from javascript (2nd and last try :) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12615@lists.php.net to get a copy of this message | ||
Hi!
Cesare D'Amico wrote:
If I add a fifth parameter with something like: array('id'=>'data_da', 'onChange'=>'calcDates()') all three <SELECT>s in the widget get the same ID, so I cannot access them with document.getElementById(). The names of the <SELECT>s are "data_da[d]", "data_da[F]", "data_da[Y]" (which are incorrect names for JS variables) so I can't get the values by document.forms[0].widget_name either.You can try document.forms[0]['data_da[d]']