title: Passing checked checkboxes values to another JSP using Javascript
body: <p>This is ,my code in JSP. I need to pass checked checkbox values from a.jsp to b.jsp through Javascript. I have no idea how to do it. Please help me.</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
          &lt;title&gt;Insert title here&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form method="post" action="b.jsp"&gt;
              My Favourite Colors are
              &lt;input type="checkbox" name="cb1" value="blue"&gt;Blue
              &lt;input type="checkbox" name="cb1" value="green"&gt;Green
              &lt;input type="checkbox" name="cb1" value="Yellow"&gt;Yellow
              &lt;input type="checkbox" name="cb1" value="Red"&gt;Red
              &lt;input type="checkbox" name="cb1" value="white"&gt;White
              &lt;input type="submit"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>