to define a var by .get()

to define a var by .get()

  1. ...

  2. <div id="imageblock" style="position:absolute; top:200px; left:150px; width:676px; height:450px;">
  3.    <img src="001_img.jpg" title="pic1" style="display:block"/>
  4.    <img src="002_img.jpg" title="pic2" style="display:none;"/>
  5.    <img src="003_img.jpg" title="pic3" style="display:none;"/>
  6.    <img src="004_img.jpg" title="pic4" style="display:none;"/>
  7.    <img src="005_img.jpg" title="pic5" style="display:none;"/>
  8. </div>

  9. <div id="texter" style="position:absolute; top:200px; left:850px; width:150px; height:450px;">

  10. </div>

  11. <script>
  12. var zzz=$('  ???? What do I have to write here ??? ').get(0);
  13. $("#texter").text(zzz);
  14. </script>

  15. ...

hi,

just started with jQuery and I have following problem:

I want to generate a text in the "texter"-div which shows the title-name of the second image of the imageblock-div. what do I have to write at line 17? or is the script completle wrong? help would be great!

thanks a lot,
nobruno