Execute document.ready after ajax post
I have a custom.js file in which I have several elements that have click and other methods bound to them. The entire file is encapsulated in document.ready() and everything works. However when I do an AJAX post obviously document.ready() is never fired again for the current page. Is there anyway I can get document.ready() to fire again or do I need to have everything in named functions call them form my create.js.erb? You could always just put everything in one function (named loadfunction or something) and call that function when the document loads, and again when the ajax is loaded. Though