I build up a dynamic list of items with a "view" link at page load.
The "click" event of these are as follows (works fine)
Inside "ViewRequest" I can let the user edit the item and on that's success I re-create my list using an ajax post and json.Code:$('.btnEditRequest').click(function () { var link = this; ViewRequest(link.id); });
However,after doing so, my "click" event for $('.btnEditRequest') won't fire anymore.
I remember I have to "bind" it ,but now not sure about the syntax again:
After re-building my list, I should do something in the line of (wrong syntax) the following, no?
Code:$('.btnEditRequest').bind('click', function () { var link = this; ViewRequest(link.id); });


Reply With Quote
