problem with add jQuery function by Ajax in asp

problem with add jQuery function by Ajax in asp

Hi,
In a asp page, I update a database by Ajax and add the new record in a div list on the page. the things that I want to do is running Toggle jQuery function for my recently added record. since I'm very new in jQuery I don't know how active the jQuery function after Ajax functionality.  

here is the example of jQuery, I added by Ajax:

            the "butSave" &aid&" id a new added div by Ajax too.

response.write "$(""#butSave" &aid& """).click(function () {"
response.write "var ameNameNew = document.getElementById('ameName" &aid& "').value;"
response.write "if ((ameNameNew!=null)&&(ameNameNew!='')){"
response.write "$(""#AmeDiv" &aid& """).toggle(""slow"");"
response.write "}"
response.write "});"

when I do that all jQuery functions stop running in my page.
thanks in advance for any idea