Asked 12 days ago
9 Jan 2017
Views 123
shabi

shabi posted

using jQuery , How do I detect a click outside an element?


$("textarea").OnClickOutSide(){
//hide the textarea
});


on the click of the content displaying textarea to edit the content. now want to remove textarea on click outside of the textarea ? how to detect outside click for an element in jQuery ?
Post Answer