Hi everyone,
I've got a quick question, say I open a new window and in that
window i have a button which will close the new window and also check a
box in the original window, can this be done with jquery or is it easier
to use the regular DOM method?
I have this:
$("#i-agree").click(function(){
$("#accept-terms",window.parent.document).attr("checked","checked");
window.close();
});
Should I just do:
window.parent.document.getElementById('accept-terms').value = 1;
window.close();
? The jquery window scoping deosn't seem to be working.
Cheers,
Rob