I just found working solution for my question and may it helps others...
$(document).mouseup(function (e) {
var container = $(".edit");
if (!container.is(e.target) // if the target of the click isn't the container...
&& container.has(e.target).length === 0) // ... nor a descendant of the container
{
if(container.find("form").length > 0) {
container.find("form").submit();
}
}
});
I found this answer from one of SO Answer. So if anybody interested please have a look on link given.