[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

creating a string/array of ids from multiple checkboxes

Asked by T0masz in JavaScript

Tags: array, checkboxes, multiple

Im trying to get the values from all the checked boxes, so lets say the first and thrid one is checked, Id like to be able to run thru the form and check which checkboxes are checked and then have a string/array that would have the values in it devided by commas, so for first and third the string would look like this "6,53"
How do i make my js go thru all the checkboxes? I know you can do it with just a for loop but my ids dont increase incrementaly.

Tom
<FORM ACTION="submit.php">
<INPUT TYPE=CHECKBOX NAME="6"   >first<BR>
<INPUT TYPE=CHECKBOX NAME="9"   >second<BR>
<INPUT TYPE=CHECKBOX NAME="53" >third<BR>
<INPUT TYPE=CHECKBOX NAME="123">fourth<P>
<INPUT TYPE=SUBMIT VALUE="submit">
 
[+][-]05/23/06 12:07 PM, ID: 16745395Accepted Solution

Your question has an Asker Certified™ answer! T0masz verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zone: JavaScript
Tags: array, checkboxes, multiple
Sign Up Now!
Solution Provided By: Roonaan
Participating Experts: 2
Solution Grade: A
 
[+][-]05/23/06 12:06 PM, ID: 16745390Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20100308-EE-VQP-140
Your technology problems solved.
Close See Plans and Pricing. Try it FREE for 30 days.