Hi all
I have a form with a variable number of input boxes, with names [reviewdateX] where X= primary key of record.
A constant text entry box has a calander selection associated with it. When a user fills this constant input with a value from the calander, I would like all the dynamic inputs to receive the same value...
Here is the code around the "constant" input:
How can I fill these inputs if I dont necessarily know their names, or how many there are, previously?
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!
I have a form with a variable number of input boxes, with names [reviewdateX] where X= primary key of record.
A constant text entry box has a calander selection associated with it. When a user fills this constant input with a value from the calander, I would like all the dynamic inputs to receive the same value...
Here is the code around the "constant" input:
Code:
<input type=text name=day value="" id=day/>
<a href="" id="trigger1"><img src="/icons/show-calendar.gif" width=15 height=15 border=0></a>
</td>
<script type="text/javascript">
Calendar.setup(
{
inputField : "day", // ID of the input field
ifFormat : "dd/mm/y", // the date format
button : "trigger1" // ID of the button
});
</script>
How can I fill these inputs if I dont necessarily know their names, or how many there are, previously?
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!