How can I add to img tag?

How can I add to img tag?

Dear all,

I need your help. I hope you can give me some replies.

My dynamic website create the following html.

<img src="images/products/flower_art/daffodil_small.jpg" border="0" alt="DAFFODIL: SIMPLICITY" />

I'd like to add

jqimg="images/products/flower_art/daffodil_big.jpg"

And make it like this.

<img src="images/products/flower_art/daffodil_small.jpg" border="0" alt="DAFFODIL: SIMPLICITY" jqimg="images/products/flower_art/daffodil_big.jpg"/>

Since it is a dynamic site, I have to pick up src image and cut the last 9 letters (small.jpg) and add big.jpg with jqimg in front.


I started like this,
$(document).ready(function() {
var $addjqimg = $('jqzoom img').attr('src');
var bigimg = $addjqimg.slice(-9).


then I am stuck.

Help me please.
Thanks in advance.