title: Show and hide table row on hover, initially hidden, not hidden if input
body: <p>I have an HTML table with a row that has an input. When I hover over the row, I want to expand the row and show the input and then collapse if not hovered. However, I want the row to start of collapsed and I do not want the row to collapse if there is a value in the input.</p>
  
  <p>Here is a fiddle:</p>
  
  <p><a href="http://jsfiddle.net/4Hdge/" rel="nofollow">http://jsfiddle.net/4Hdge/</a></p>
  
  <pre><code>&lt;table style="width:300px; background-color:#d3d3d3"&gt;
   &lt;tr id="filter" style="background-color:blue"&gt;
    &lt;td&gt;&lt;input id="search" placeholder="Search" style="width:100px"/&gt;&lt;/td&gt;
    &lt;td&gt;&lt;/td&gt; 
    &lt;td&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;Jill&lt;/td&gt;
    &lt;td&gt;Smith&lt;/td&gt; 
    &lt;td&gt;50&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
    &lt;td&gt;Eve&lt;/td&gt;
    &lt;td&gt;Jackson&lt;/td&gt; 
    &lt;td&gt;94&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
  
  
  $("#filter").hover(
  
  function () {
  
          $("#search").show();
  
    },
  function () {
  
          $("#search").hide();
  
    }
  );
  </code></pre>