I need to get the image src value from list of image wrapped inside div and pass that value to a textbox.
I have worked on this example but it always get the value of first image irrespective of which image you click one.
How do i modify script so that it always get the src of the image which is click to that textbox
This is because your selector is on
#imgListContainer, and selects the image using$(this).find("img").You need to change your selector to
#imgListContainer img, and yourimgdeclaration to just$(this).Change your code to:
Demo: http://jsfiddle.net/FMW22/1/