ajax 将内容加载到隐藏的 div 后触发颜色框?
$('#recipe').on('keyup', function( event ){
if(this.value.length == 3) {
/* run ajax call, output result to div #check-drink */
ajaxRequest('<?php echo SECUREURL; ?>/ajax/ajax-check-drink.php', 'recipe='+$('#recipe').val(), '#check-drink');
/* open results from ajax call into colorbox */
$('#check-drink').colorbox({inline: true, open: true);
}
});