title: automatic submit form js
body: <p>I'm trying to auto submit a form,(below it's only the form, its wrapped with a while{} for each DB entry to display).
  It's working for all days of the week, but I can't submit the value for $totalhours, $holidayhours, $wagegross without a js event like onfocus().</p>
  
  <p>Basically I want to submit this 3 inputs without an click or any other manual action.</p>
  
  <p>any idea ?</p>
  
  <pre><code>&lt;form id="weeklysheet" name="weeklysheet" method="post" action="hourly-function.php"&gt;
              &lt;tbody&gt;
  
                  &lt;tr style="line-height:0px;"&gt;
                      &lt;td class="large"&gt;
                          &lt;p class="employee_name"&gt;&lt;?php echo  $fullname?&gt;&lt;/p&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="mon" id="mon" type="text" class="days_input" value="&lt;?php echo $data['mon'];?&gt;"onchange="this.form.submit();"/&gt;
                      &lt;/td&gt;                   
                      &lt;td class="small"&gt;
                          &lt;input name="tue" id="tue" type="text" class="days_input" value="&lt;?php echo $data['tue'];?&gt;"onchange="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="wed" id="wed" type="text" class="days_input" value="&lt;?php echo $data['wed'];?&gt;"onchange="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="thu" id="thu" type="text" class="days_input" value="&lt;?php echo $data['thu'];?&gt;"onchange="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="fri" id="fri" type="text" class="days_input" value="&lt;?php echo $data['fri'];?&gt;"onchange="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="sat" id="sat" type="text" class="days_input" value="&lt;?php echo $data['sat'];?&gt;"onchange="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="sun" id="sun" type="text" class="days_input" value="&lt;?php echo $data['sun'];?&gt;"onchange="this.form.submit();"/&gt;
                      &lt;/td &gt;  
                      &lt;td class="small"&gt;
                          &lt;input name="totalhours" id="totalhours" type="text" class="cumul_week_input" value="&lt;?php echo $totalhours ?&gt;"onfocus="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="holidayhours" type="text" class="cumul_week_input" value="&lt;?php echo $holidayhours ?&gt;"onfocus="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td class="small"&gt;
                          &lt;input name="wagegross" type="text" class="cumul_week_input" value="&lt;?php echo $wagegross ?&gt;"onfocus="this.form.submit();"/&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                      &lt;input type="submit"name="save" id="save" value="Confirm" style="display:none;" /&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/form&gt;
  </code></pre>