Clicking on background div only

This is a way to trigger a function when user clicked/touched the background div without hitting it’s child elements.

$('#parentDiv').click(function(e) {
    var clicked = $(e.target);
    if(!clicked.hasClass('parentDivClass')) {
        // do function
    }
});

So the target of the event will be what was clicked. By using a jQuery selector we can do even more fine grain checking (especially useful for very complicated applications) before triggering the function.

 
1
Kudos
 
1
Kudos

Now read this

Configure Spring to turn Quartz scheduler on/off

This is a way to use Spring’s PropertyPlaceholderConfigurer to turn Quartz Scheduler on and off based on a properties file. This way an application can be configurable using only the properties file exclusive of changing xml documents.... Continue →