Re[2]: [SMARTY] Automatic update of textfield when users uses <select>

From: Date: Fri, 01 Nov 2002 14:23:34 +0000
Subject: Re[2]: [SMARTY] Automatic update of textfield when users uses <select>
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6081@lists.php.net to get a copy of this message
PVW> I will try to be more clear about it: i have dropdownbox on my PVW> template which contains the data from $customer.name and is PVW> indexed by $customer.id PVW> when the user chooses a name from the box the PVW> "document.selCustomer.selectedIndex" has the right index which PVW> corresponds with the customer selected. What i want now is that PVW> document.txtEmail.value contains the value which can be found in PVW> $customer[here should the index come].email PVW> my syntax is right(not completly but, if it were it should work PVW> :() i have a box called "selCustomer" where the user can select a PVW> customer. When the user has selected the customer the email PVW> adress which comes witht the selected customer should be filled PVW> in "txtEmail" oki dokee... so... so i think that the best run is to create a JS array using the selectbox indexes as array indexes, and on change, set the email address in this array as the value for the text box. Bertrand

« previous php.smarty.general (#6081) next »