You could do something like the following. I haven't tested this and it is late, so I am not promising it actually works :-).
$("img").click(function() { $this = $(this); $this.attr("src", "newimage.jpg"); $("#textbox-id").val($this.attr("id")); }); On Feb 15, 1:46 pm, Hellofrom <hellof...@gmail.com> wrote: > Hello Every One > I really need your help, > What i am trying to do is > when click on image in the page i need to change it to other one and in the > same time update textbox with image ID. > > Thanks in advance