[jQuery] binding after .get()

2009-04-16 Thread hphoeksma
Hi, I am new to jQuery and can't get my head around the binding concept. I read some posts about it, but can't seem to figure out how to bind data coming from $.get('script.php', {'c': c, 'sc': sc }, function (data) {...} It's now loaded using: $('form').html(data); replacing the normal form com

[jQuery] binding after .get()

2009-04-16 Thread hphoeksma
Hi all, new to jQuery I am having difficulty on the binding concept. Currently using this function to regenerate a full form based on a PHP script. -- $("select").change(function () { $.get('script.php', {'c': c, 'sc': sc }, function(data) { $('form').html(data); });