Need help with Jquery and javascript
<p>I have bunch of employees, each employee have 7 days for their work schedule. I created the following form using php and would like get data from here to JavaScript for verification and then submit it to SQL database using ajax. My problem is how can I dynamically create these forms and then get values from their inputs? Dynamically creating them is the easy part.</p>

<pre><code>&lt;?php
 function getNewEmployeeForm($name) {

$def_form = "
  &lt;tr name=\"" . $name ."\"&gt;
  &lt;td&gt;".$name ."&lt;/td&gt;
    &lt;td&gt;
        &lt;input style=\"width:55px\" id='". $name ."' type=\"text\"&gt;
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input style=\"width:55px\" id='". $name ."' type=\"text\"&gt;
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input style=\"width:55px\" id='". $name ."' type=\"text\"&gt;
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input style=\"width:55px\" id='". $name ."' type=\"text\"&gt;
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input style=\"width:55px\" id='". $name ."' type=\"text\"&gt;
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input style=\"width:55px\" id='". $name ."' type=\"text\"&gt;
    &lt;/td&gt;
    &lt;td&gt;
        &lt;input style=\"width:55px\" id='". $name ."' type=\"text\"&gt;
    &lt;/td&gt;
  &lt;/tr&gt;";

  echo $def_form;
}?&gt;
</code></pre>
