你能帮我并告诉我如何将href发送到该代码中的数据:
$(".ad-gallery").on("click", ".ad-image", function () {
$.fancybox({
href: $(this).find("img").attr("src"), //here is the value i want to send
titlePosition: 'outside',
title: $(this).text(),
'beforeShow': function () {
var content = $('.fancybox-inner'); // for v2.x use : var content = $('.fancybox-inner');
$('.fancybox-wrap').append('<div class="fancy_print"></div>'); // for v2.x use : $('.fancybox-wrap').append(...
$('.fancy_print').bind("click", function () {
var retVal = confirm("Are you sure you want to order it?");
if (retVal == true) {
$.ajax({
type: "POST",
url: "WebForm1.aspx/coucou",
data: "{}",//$titre.serialize(),// and i want to give the value inside that data
谢谢