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 Chris Miller 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. Overspeed

    How to modify <select> value based on input from JS confirm window

    Just out of curiosity, do you think this could be done? You see the page in question actually has 8 select fields with ids "rec1pass" through "rec8pass". This allows for 8 family members to register. In a perfect world if Night Season Pass was chosen in any of the select fields the confirm...
  2. Overspeed

    How to modify <select> value based on input from JS confirm window

    Hello, I have a <select> form field that uses the following JS: function remindMe() { if (document.getElementById('rec1pass').value == 'Night Season Pass') { confirm("Did you know it is a better value to but an Almost Anytime Pass? Click OK to change your selection."); return false; } } with...
  3. Overspeed

    Can JS pass a form SELECT value to a form HIDDEN value?

    Figured it out: function applyShipping() { document.getElementById('shipping2').value = document.getElementById('shipping').value; } <form onSubmit="applyShipping()">
  4. Overspeed

    Can JS pass a form SELECT value to a form HIDDEN value?

    Hello, I have a form with a <select> field named "shipping" which has 3 options. I need to add a hidden field type that will somehow grab the value of "shipping" and assign it to the hidden field "shipping2" when submitted. Seen below: <select id="shipping" name="shipping"> <option...
  5. Overspeed

    Using JS cookie to recall form fields - eliminate &quot;hidden&quot; fields

    Feherke, Ok I think its working now. Your third solution seems to be the magic one. Your second solution DOES prevent the recording of the hidden fields but it causes a glitch in the repopulation of the form fields. Your third solution tells the "open cookie" function to simply ignore the...
  6. Overspeed

    Using JS cookie to recall form fields - eliminate &quot;hidden&quot; fields

    Feherke, Let me elaborate on my last response. When I modify the script as you last suggested there is a change ... when I view the cookie contents I no longer see the hidden values included. I do see the <select> values recorded ... but ... they are not repopulating to the page when revisited...
  7. Overspeed

    Using JS cookie to recall form fields - eliminate &quot;hidden&quot; fields

    if (fieldType=='hidden') continue; I tried that and it had no effect :( J
  8. Overspeed

    Using JS cookie to recall form fields - eliminate &quot;hidden&quot; fields

    Hi Feherke, Sorry, I was not referring to form elements that use CSS visibility, instead form values that are designated as "hidden" like this: <input type="hidden" name="date" value="071507"> The script above as originally designed will record ALL form elements both user input and hidden. I...
  9. Overspeed

    Using JS cookie to recall form fields - eliminate &quot;hidden&quot; fields

    Hello, I am using the following script to record inside a cookie form elements that can be recalled on a future visit. I works great but it is recording "hidden" fields as well as standard input fields and this causes big problems for its application. Here is the script: var expDays = 100; var...
  10. Overspeed

    Modifying form button style after two form selections made

    Ok... RIGHT after I worte this post I found the problem in that I didn't include the ID's in each select as YOU HAD WRITTEN. It's 4am and had a long day, sorry to bother you. J
  11. Overspeed

    Modifying form button style after two form selections made

    Feherke, Odd things are happening. I integrated your script into a test page. It works fine in IE, Opera, but no go in FF or NS. If I fun your script as written in FF or NS it works, just not when integrated into my page. Here are two pages with different features: Works in IE, doesn't in FF...
  12. Overspeed

    Modifying form button style after two form selections made

    Feherke, I owe you a beer or wine depending on where your from. Thank you much. J
  13. Overspeed

    Modifying form button style after two form selections made

    feherke, Thank you for your response. I did catch that css bug after posting my appologies. How would we modify your example to accommodate two select fields that must both have a valid selection before the submit appears? And where the button would dissapear if any given valid selection was...
  14. Overspeed

    Modifying form button style after two form selections made

    Hello all, This is my first time here and my first post so please bear with me as I an new to the world of JS. I have been asked to implement a "unique" function on a form on our Website. You see we are setting up a PayPal cart and we need to have 2 SELECT fields where users select their...

Part and Inventory Search

Back
Top