I have an array which I used in the tag name :
<?php
echo "<td><select name='search[$field]'></select>"
?>
but how do I write the name in Javascript?
For example
<script language="javascript" type="text/javascript">
document.formname.---.options.length = 0;
</script>
How should I write in the "---" ?
Is it something like this?
<script language="javascript" type="text/javascript">
document.formname.search[$field].options.length = 0;
</script>
document.formname['search[$field]'].options.length = 0;language="javascript"has not been require to use for almost 10 years now .. you might look into the age or quality of your tutorial.