我無法找到我在做什麼錯jQuery的顏色框類的名稱是不是一個函數
我使用jQuery的顏色框
<a title="Add Externaal attendee" class ="addmeetingroom" href="http://webfaction/UI/user/attandee.php" style="background-color:orange;text-align:center;text-decoration:none;"> Add Attendee<a>
這裏是顏色框
<script>
function getLBTitle(that){
title= $(that).data("title");
if(typeof title == 'undefined'){
title = $(that).attr("original-title")
}
if(typeof title == 'undefined'){
title = $(that).attr("title")
}
return title;
}
$(".addmeetingroom").colorbox({width: "600", initialWidth: "500", height:"500", top:"5%",title:function(){return getLBTitle($(this));}});
</script>
腳本我不知道爲什麼我越來越
TypeError: $(".addmeetingroom").colorbox is not a function
你加載插件? – xdazz
是的老闆它已經是我的js視圖顯示所有代碼 – user1667633