Re: using a variable in a JS dot notation string
| From: | K.Bogac Bokeer | Date: | Tue, 27 Jan 2004 14:30:24 +0000 |
| Subject: | Re: using a variable in a JS dot notation string | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22670@lists.php.net to get a copy of this message | ||
Try this:
<?
$tempVar = "Test_Amendment_One"
?>
<script>
rBvalue = document.voteForm.<?=$tempVar?>[0].checked
</script>
Bogac.