title: Can a single jQuery line be written to perform this hide and fadein?
body: <p>An easy question for a jQuery guru!</p>
  
  <p>This jQuery and Javascript mix works fine, </p>
  
  <pre><code>function fadeInResponseMsg(msg)
  {
      $("#responsemsg").hide();
      document.getElementById("responsemsg").innerHTML = msg;
      $("#responsemsg").fadeIn(); 
  }
  </code></pre>
  
  <p>I'm learning jQuery so I'd like to know if it be written in a single line?</p>
  
  <p>I have tried this but it wont work.</p>
  
  <pre><code>$("#responsemsg").hide().val(msg).fadeIn();
  </code></pre>
  
  <p>I'd prefer not to spend another few hours reading around, so help is appreciated. </p>
  
  <p>Thanks for the quick answer all...</p>
  
  <p>fyi the HTML</p>
  
  <pre><code>&lt;table&gt;&lt;tr&gt;&lt;td class="responsemsg" id="responsemsg"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  </code></pre>