I have a click event inside of which I would like to load different divs according to what has been clicked:
var open = $('.open');
open.click(function(evt) {
evt.preventDefault();
overlay.fadeIn(400, function(){
box.fadeIn(500);
// if something load box2
// if something load box3
});
Open is a class given to the links which relate to box, box2 and box3. How can I load the content for box2, would I have to use a specific class for each of them?
ifcondition?.openis not there in HTML!:)how do you trigger click event?