How to validate one field based on the other field using jquery
<p>I have a table</p>

<pre><code>&lt;table&gt;
  &lt;tr class ="entry1"&gt;
  &lt;td class = "my_cell" name ="point" &gt;
  &lt;td class = "my_cell" name ="distance1" &gt;
   &lt;td class = "my_cell" name ="distance2" &gt;
   &lt;/tr&gt;

   &lt;tr class ="entry2"&gt;
  &lt;td class = "my_cell" name ="point" &gt;
  &lt;td class = "my_cell" name ="distance1" &gt;
   &lt;td class = "my_cell" name ="distance2" &gt;
   &lt;/tr&gt;

&lt;/table&gt;
</code></pre>

<p>If any of the fields with the name "distance1" or "distance2" is filled then the corresponding text box in the same row (not in the other row)with the name "point" should be filled ,if not then a error message should be printed.</p>

<p>If the text field with the name "point" is filled then the corresponding test boxes "distance1" or "distance2" in the same not in the other row) row should be filled or a error message must be printed</p>
