help running functino with html fetched with ajax

help running functino with html fetched with ajax

i am building a messgae center,
and when you first come to the inbox the messages are shown loaded through the page(not with ajax)
and clicking on the message has alert of message id, which works fine,
unitll i clikc page 2, and it loads in the next messages dynamically with ajax, same html, but with new messgae id and subject.

but it doesnt work

pulling my hair out over this
haha
help