javascript - Syntax for changing FancyBox close button into submit button -
what syntax adding helper function fancybox’s fancyapps2 close
button turn submit
button?
i need add together following:
input type="submit" name="whereto" value=""
current fancybox function
$(function () { $(".fancybox_iframe").fancybox({ type: 'iframe', padding: 0, scrolling: 'no', width: 840, minheight: 150, height: 615, closebtn: true, helpers: { overlay: { closeclick: false, opacity: .5} }, aftershow: function () { $("a.fancybox-close").attr("title", null); }, afterclose: function () { parent.close_field('notice'); parent.closeiframe_redirect('index.php'); } }); });
you can create utilize of aftershow
method of it:
aftershow: function () { var input = $('<input />', { type : "submit", name : "whereto", value : "" }); $("a.fancybox-close").replacewith(input); },
javascript jquery fancybox-2 submit-button
No comments:
Post a Comment