Apply to all fields? -
11-08-2007
, 03:38 AM
I have a script that copy value from one "master" selectbox to all another selectboxes.
How I can add one master text field that can do the same to the another text fields?
<script type="text/javascript">
function applyToAll()
{
for (var i=0; i< document.MYFORMNAME.length; i++) {
document.MYFORMNAME[i].selectedIndex = document.MYFORMNAME.NAMEOFMAINSELECT.selectedIndex ;
}
}
</script>
Thanks in advanced,
-Event |