Hi viccirc
You're quite right, I do need uniquely named items!
I think the best way forward is to rethink the strategy. I can add an extra step to the process to put the fields I was trying to copy into a session variable and from their into my loop and this means I don't need the javascript...
Problem!
The method above works fine when you want to update the content of just one field. Problem is, I need to take the content of one field and insert it into a variable number of identically named fields. This is because my page is a looping ASP update which loops through a recordset and...
Figured out the second of the two, still stuck on the first.....
<html>
<head>
<title>Untitled Document</title>
<script type="text/javascript">
function data_copy()
{
document.form1.El2.value=document.form1.El1.value;
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post"...
Hi
How would I copy the selected value from an html form select list element to a hidden field elsewhere in the form, please? Every time the selected list entry is changed I want to change the hidden field as well, but the list has a default entry which is empty (label but no value) and I...
Thanks Vacunita - that's just what I needed.
Just for the benefit of anyone following the thread later, it is chkbox_action not date1_change which should be set to run on the onClick event of the checkbox, I think?
Many thanks for your help.
Tim
Hi
I have a form with a date field which defaults to today's date, called date1. I also have checkbox, cb1, which I want to have the effect that if it is checked it copies the value of date1 into a second date field date2. The complications are that if the user has overwritten the default value...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.