$(document).ready(function() { $(".send").colorbox({ inline: true, href: "#sendBox" }); $(".sc").colorbox({ inline: true, href: "#scBox" }); $(".overBox").colorbox(); });