jQuery keyup value of input
<p>i need to display value of <code>&lt;input&gt;</code> into the <code>&lt;span&gt;</code> and when label become empty, change value of span to "Video title". But always i type something into the <code>&lt;input&gt;</code> and then delete it, the <code>&lt;input&gt;</code> still have "" value so <code>&lt;span&gt;</code> display nothing. Thanks for help. (And sorry for my bad english)  </p>

<p>Here is my code:</p>

<pre><code>$("#newVideoName").keyup(function(){
   var newVideoName = $("#newVideoName").val();
   if(newVideoName == ""){
       $("#newVideoNameLabel").html("Video title");
   }
});
&lt;input type="text" id="newVideoName"&gt;
&lt;span id="newVideoNameLabel"&gt;&lt;/span&gt;
</code></pre>
