javascript - How to open a div with this code? -


$(document).ready(function(){     settimeout(function() {         $.fn.colorbox({href:"res/homer.jpg", open:true});       }, 1500); });   

this little code opens window picture (homer.jpg), want open div example div id: #examplediv

what should change in code?

use code snippet add though have change few things:

$('.element').attr('id', 'newid'); 

Comments