use script on HTML obtained with .load()
Hello!
I'm trying to make a beautifull ajax-based fom like javascript galleries.
With this I get HTML form, generated by PHP script, depending on passed parameters:
- $("#info").load('./handler.php', {object: 'course', action: 'add'});
It works cool, but obtained HTML isn't affected by the script and can't handle any events, for example:
- $("form").click(function () {
- alert('click is made');
- });
doesn't work anyway:'((
I supposed to send data from this form using ajax, e.g. '.load()', but as you see, I can't use script on it:'(((
Please help anyone!!!
Thanks!!