to define a var by .get()
- ...
- <div id="imageblock" style="position:absolute; top:200px; left:150px; width:676px; height:450px;">
- <img src="001_img.jpg" title="pic1" style="display:block"/>
- <img src="002_img.jpg" title="pic2" style="display:none;"/>
- <img src="003_img.jpg" title="pic3" style="display:none;"/>
- <img src="004_img.jpg" title="pic4" style="display:none;"/>
- <img src="005_img.jpg" title="pic5" style="display:none;"/>
- </div>
- <div id="texter" style="position:absolute; top:200px; left:850px; width:150px; height:450px;">
- </div>
- <script>
- var zzz=$(' ???? What do I have to write here ??? ').get(0);
- $("#texter").text(zzz);
- </script>
- ...
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