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