If one field in row is entered, all the other fields in the row are required
<p>This is a code to enter date, select  in/out and location.
If the user want more fields to enter i also added a addRow function.</p>

<pre><code>&lt;table&gt;    
for($i=0;$i&lt;15;$i++){ 
&lt;tr&gt;&lt;td&gt;
&lt;input type='datepick' name='scheduledatepick[$i]' /&gt;
&lt;select name='schedulein[$i]' /&gt;&lt;option&gt;--&lt;/option&gt;
&lt;input type='text' name='location[$i]' /&gt;
&lt;/td&gt;&lt;/tr&gt;
}
&lt;/table&gt;
</code></pre>

<p>Now my question is if a user entered a field in a row(maybe datepick or schedulein or location) then he must enter all the other fields in that same row. How to achieve this?
 <img src="http://i.stack.imgur.com/0WY4u.png" alt="enter image description here"></p>
