JavaScript Scripts in dynamic content
<p>I've got a problem. I have a web-app with dynamic content (so URL in browser is always /index.php). I want to add some scripts in that, but they talk about elements that WILL BE created, for example some divs. FireBug throws me an error that element, e.g. $('#div1") is null. When I attach those scripts in loaded views, they're not working because thay need to get document.ready event. How to make those scripts fired?</p>
