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

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -