title: submitting a form on android using java script
body: <p>I use the following <code>javascript</code> code to <code>validate/submit</code> my form:</p>
  
  <pre><code>function SendForm()  {
              var formlist = document.getElementById ("formlist");
              var buttonRadios = document.getElementsByName ("film");
              var selected = false;
              for (var i = 0; i &lt; formationRadios.length; i++) {
                  if (formationRadios[i].checked) {
                      selected = true;
                      break;
                  }
              }
              if (selected) {
                   document.formlist.submit ();
  
              }
              else {
             //nothing to do
              }            
          }
  </code></pre>
  
  <p>In the Html side:</p>
  
  <pre><code>&lt;form  method="post" name="formlist"  action="films.php" OnChange="SendForm();"&gt;
  ...
  &lt;input type="radio" name="film" id="spman" value="spman" required="required"&gt;&lt;label for="spman"&gt;Spider Man&lt;/label&gt;
  ...
  
  &lt;select class="required" name="date" id="date"&gt;
  &lt;option selected value="13-05-2012"&gt;13 May 2012&lt;/option&gt;
  ...
  &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><em><strong>This works with firefox beta under android but not with the android default browser</em></strong>. It also works with  firefox desktop browser.</p>
  
  <p>Could you tell me what's wrong with it, I don't have errors inf firebug console.</p>
  
  <p>Update: </p>
  
  <p>I finally found the problem, it doesn't come from the code but from the iPhone/iPad bug with checking radio box when clicking label, for further information:</p>
  
  <p><a href="http://v4.thewatchmakerproject.com/blog/how-to-fix-the-broken-ipad-form-label-click-issue/" rel="nofollow">http://v4.thewatchmakerproject.com/blog/how-to-fix-the-broken-ipad-form-label-click-issue/</a> </p>
  
  <p>Thank you all for your help.</p>