title: Detecting for focus in td in table layout
body: <p>The task is to take action if the focus is not found on any <strong>td</strong> in a table. The table layout is stored in a <strong>jquery variable</strong>, whose layout looks like this <br/></p>
  
  <pre><code>&lt;table class="cal_tbl" cellSpacing="1" cellPadding="3"&gt;  &lt;tbody&gt;
  &lt;tr&gt;
    &lt;td class="cal_head"&gt;&amp;lt;&amp;lt;&lt;/td&gt;
    &lt;td class="cal_head"&gt;&amp;lt;&lt;/td&gt;
    &lt;td class="cal_head" colSpan="3"&gt;November 2012&lt;/td&gt;
    &lt;td class="cal_head"&gt;&amp;gt;&lt;/td&gt;
    &lt;td class="cal_head"&gt;&amp;gt;&amp;gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class="cal_subhead"&gt;Sun&lt;/td&gt;
    &lt;td class="cal_subhead"&gt;Mon&lt;/td&gt;
    &lt;td class="cal_subhead"&gt;Tue&lt;/td&gt;
    &lt;td class="cal_subhead"&gt;Wed&lt;/td&gt;
    &lt;td class="cal_subhead"&gt;Thu&lt;/td&gt;
    &lt;td class="cal_subhead"&gt;Fri&lt;/td&gt;
    &lt;td class="cal_subhead"&gt;Sat&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td colSpan="4"&gt;&lt;/td&gt;
    &lt;td class="cal_cell"&gt;1&lt;/td&gt;
    &lt;td class="cal_cell"&gt;2&lt;/td&gt;
    &lt;td class="cal_cell"&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class="cal_cell"&gt;4&lt;/td&gt;
    &lt;td class="cal_cell"&gt;5&lt;/td&gt;
    &lt;td class="cal_cell"&gt;6&lt;/td&gt;
    &lt;td class="cal_cell"&gt;7&lt;/td&gt;
    &lt;td class="cal_cell"&gt;8&lt;/td&gt;
    &lt;td class="cal_cell"&gt;9&lt;/td&gt;
    &lt;td class="cal_cell"&gt;10&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class="cal_cell"&gt;25&lt;/td&gt;
    &lt;td class="cal_cell"&gt;26&lt;/td&gt;
    &lt;td class="cal_cell"&gt;27&lt;/td&gt;
    &lt;td class="cal_cell"&gt;28&lt;/td&gt;
    &lt;td class="cal_cell"&gt;29&lt;/td&gt;
    &lt;td class="cal_cell"&gt;30&lt;/td&gt;
  &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt;
  </code></pre>
  
  <p>I have to check whether the focus is on any of the <strong>td</strong> 
  The below is my code what I tried <br/></p>
  
  <pre><code>if ($(CurrentCalendarButton).children[i].is(":focus") == true)
       alert("Keep it on")
  </code></pre>