In my web-application i have a div which loads another page: $('#main').load('pages/main.php');
main.php consists jquery validation script. This script is working if i go directly to the main php, but don’t work if i will use this page on my index page where main.php loaded.
How can i solve this problem?
Thanks in advance.
I ended up using .livequery() to solve EXACTLY this issue! 🙂
have a look.
http://plugins.jquery.com/project/livequery/
Include the plugin, then you’ll need something like this in your index.php