append issues

append issues

I am trying to append a bit of html to a <Div> tag. It is a <a> with an image.

The link shows up after the append, but the link is not working properly.

THe code i am using is below:

$("#floatdiv").append('<a href="/Requirements/Create" title="Create Requirement" rel="ModalDialog"><img src="/Content/Images/Create24.png" /></a>'); // adds the code at the end of the Floating Navigation Div.

The id of the DIV is "floatdiv". This is supposed to execute as a modal dialog, but it is not working.

If I hardcode the link into the <Div> tag, it works properly. What is happening?
Thanks