How to get text value in jquery?
<p>I have three  elements, which are sliding on the screen, i want to get the text of  element which is currently showing on the screen, I tried .text() function, but this returns the text of all the s elements, is there any  way using javascript or jquery to do this.</p>

<pre><code>&lt;div id="text"&gt;
&lt;span style=" font-size:100px;text-align:center;"&gt;koko&lt;/span&gt;
&lt;span style=" font-size:100px;text-align:center;"&gt;abc&lt;/span&gt;
&lt;span style=" font-size:100px;text-align:center;"&gt;efh&lt;/span&gt;
&lt;/div&gt;

$(document).ready(function(){  

$('#text').mouseover(function(){
var txt = $('#text span').text();
alert(txt);

});
});
</code></pre>
