
Sometimes you may need to attach event to dynamic elements in JavaScript. Here are the steps to do so.
Sometimes you may need to attach event to dynamic elements in JavaScript. Here are the steps to do so.
Sometimes you may need to display confirmation before closing browser tab/window. Here is how to close current tab in browser window.
Sometimes you may need to get ID of element that fired event in jQuery. Here are the steps to do it.
Sometimes you may need to remove empty element from JS array. Here are the different ways to do this.
Sometimes you may need to get highlighted/selected text in JavaScript. Here are the steps to get highlighted text from your web page.