jQuery get image alt inside href multiple image in array .children() not working
<p>I do extend the code the jquery lightbox plugins to meet my requirements for to able to get the image alt inside the an anchor tags then show it inside paragrap tags</p>

<p>here with my code that I can't get work </p>

<p>online 76 jQuery Light box</p>

<pre><code>        if ( jQueryMatchedObj.length == 1 ) {
            settings.imageArray.push(new Array(objClicked.getAttribute('href'),objClicked.getAttribute('title'),objClicked.children('img[alt]')));
        } else {
            // Add an Array (as many as we have), with href and title atributes, inside the Array that storage the images references        
            for ( var i = 0; i &lt; jQueryMatchedObj.length; i++ ) {
                settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAttribute('title'),jQueryMatchedObj[i].children('img[alt]')));
            }
        }
        while ( settings.imageArray[settings.activeImage][0] != objClicked.getAttribute('href') ) {
            settings.activeImage++;
        }
</code></pre>

<p>on line 244</p>

<p>I add another line which has </p>

<p>$('#lightbox-image-description').html(settings.imageArray[settings.activeImage][2]).show();</p>

<p>so if code will be success it will show the image alt on p tag with id #lightbox-image-description</p>

<p>But the problem is I cant get it work the code on the loop part on which getting the anchor tags image alt, when I click image it goes to image link </p>
