0
我正在使用ajax colorbox調用在頁面上加載頁面。目前,我只是用colorbox - ajax獲取div或部分
$('.ajax').colorbox();
我想我或許可以通過將選擇做這樣的事情
$('.ajax#content').colorbox();
我怎麼能拉我的頁面的一部分?
我正在使用ajax colorbox調用在頁面上加載頁面。目前,我只是用colorbox - ajax獲取div或部分
$('.ajax').colorbox();
我想我或許可以通過將選擇做這樣的事情
$('.ajax#content').colorbox();
我怎麼能拉我的頁面的一部分?
你的意思是傳遞一個變量到你的選擇器中?在這種情況下會是這樣的:
var myVariable = 'test'; //Your variable goes here
$('.ajax#' + myVariable).colorbox();