Below is my code
Here is the fiddle link
$("#Maindiv:not('.Buttonclass')").live("click",function(){
divclick();
});
function divclick(){
alert("div");
};
$(".Buttonclass").live("click",function(){
buttonclick();
});
function buttonclick(){
alert("button");
};
When i click on the button both "div" click and button click are getting called, i want only button to be called and not the div click function. What am i missing in the not selector?