javascript - Setting colorbox lightbox ajax href variable -
i getting bad request in colorbox when pops up:
is there away feed href using $ variable?
ajaxcall: function ajaxcall(url, data_array, div_id, callback_fn) { var d = ajaxcall(url, data_array, "rhs_info", "do_quicklist_actions"); d.done(function(data) { $.colorbox({href:"$data"}) });
try removing quotes $data
, like:
$.colorbox({href:$data});
Comments
Post a Comment