Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. tspoll

    Copy selected value from list to hidden field

    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...
  2. tspoll

    Copy selected value from list to hidden field

    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...
  3. tspoll

    Copy selected value from list to hidden field

    And now figured the other one - exactly the same but handler is onChange
  4. tspoll

    Copy selected value from list to hidden field

    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"...
  5. tspoll

    Copy selected value from list to hidden field

    And also.....how do I duplicate a multi-line text box into a hidden field as well so that the two contents always match?
  6. tspoll

    Copy selected value from list to hidden field

    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...
  7. tspoll

    Copy value from one form field to another

    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
  8. tspoll

    Copy value from one form field to another

    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...

Part and Inventory Search

Back
Top