title: set default values if empty
body: <p>I'm changing the text of an element based on the input:</p>
  
  <pre><code>$("input#txtName").keyup(function(){
        $(".website-info h3 strong").text($(this).val());
      });
  $("input#txtUrl").keyup(function(){
        $(".website-info h3 small").text($(this).val());
      });
  </code></pre>
  
  <p>It works, but I want to show default values as soon as the text is empty or user has entered nothing to prevent white space. I tried the <code>if... is.(:empty)</code> condition but it doesn't help cause <code>.text</code> doesn't seem to set default values.</p>