I just got my copy of j Query in Action (2nd Edition), so I'm sure I will find a way to simplify the script a lot- I am very detailed and sometimes need more explanation then just snippets of code to solve my issue so I'm going to give a detailed breakdown of my solution below- and hopefully it will help someone else solve a similar issue.
Now for Firefox and Chrome- the requirement to have all checkboxes checked is solved with the 'required' attribute being inside each 'input' tag, but for Internet Explorer something else must be done and this is what I have.
The answers I received here led me to which is where I got some of the code snippets to solve this problem.
Problem I had 3 checkboxes that I needed to be required before proceeding to the next page.
I've never used an array and have only been working with Java Script for a few weeks.
Any chance you could post a larger example so i could see how you integrated it within your code?
Above each checkbox was an i Frame with another page that had the disclaimer they were agreeing to.
Pages or Documents Needed *Note* This is client side, so if anyone really wants to not have to check the boxes- they could view source on the 'Disclaim Process.php' page and see where the code takes them if they had checked the boxes.
Please note that the checkboxes have the exact same name ( form Door[ ] ). Using the same name indicates that these checkboxes are all related.
Using [ ] indicates that the selected values will be accessed by PHP script as an array.
Now the code below is a broken example of what I would like it to do- I've never had any code fragments work correctly today so this will hopefully give you enough info. You can use a js script to prevent form submission if all 3 not checked. AFAIK - j Query doesn't have a native .validate() - it needs something this plug-in: Mind you, it's not something I've checked recently.
IE will always find a way of kicking you in the old crown jewels. **DON'T USE Yav and j Query together** Thank all of you guys so much!
What it SHOULD do is if all checkboxes are checked then load the next page. Ok- I'm back this morning ready to tackle this problem. YAV looks a little dated now I must admit, but still works.