jquery - Opening a Fancybox iFrame when checkbox is unticked -
i'm trying create popup using fancybox plugin i'll explain components:
- delivery details form in separate element id of #deliverydetails
- checkbox id of sameascheckbox
now want deliverydetails form popup in fancybox iframe when checkbox unchecked. appreciated!
$(function () { $("#sameascheckbox").click(function () { if ($(this).is(':unchecked')) $('#deliverydetails').fancybox(''); }); }); thanks!
try
$("#sameascheckbox").click(function () { if ($(this).attr('checked') != 'checked') $('#deliverydetails').fancybox(''); });
Comments
Post a Comment