Question from a new jquery user: I'm using load() to add new checkboxes to a long form. When the form is submitted, the new checkboxes are not present. Does this need the new live() ? If so how/where to add it exactly?
Here's my script:
<script type="text/javascript">
function loadContent(id) {
var theid = id;
Verify_Loaded_LI.check(function() {
$('<div id="subs_'+id+' />').load('display/d_loadGCsubcats.cfm?cat_id='+id+' #subcats', function() {
$(this).hide()
.appendTo('#li_'+id)
});
},theid);
}
var Verify_Loaded_LI = {
check: function(runCallback,theid) {
if ($('#subs_'+theid).length == 0) runCallback();
else $('#subs_'+theid).slideDown(1000);
}
}
</script>