Automatic update of textfield when users uses <select>

From: Date: Wed, 02 Oct 2002 12:40:16 +0000
Subject: Automatic update of textfield when users uses <select>
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6078@lists.php.net to get a copy of this message
I'm trying to find out if it is possible to set the value of a text field when the user chooses something from a dropdown box(OnChange) in perfect conditions it will look a bit like this: <SCRIPT LANGUAGE="javaScript"> {literal} function Update_Email() { document.txtEmail.value = {/literal}{$customer[{literal}document.selCustomer.selectedIndex{/literal}].email}; } </SCRIPT>

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