Sometimes you may need to attach event to dynamic elements in JavaScript. Here are the steps to do so.
How to Get Subset of JS Object Properties
How to Close Current Tab in Browser Window
Sometimes you may need to display confirmation before closing browser tab/window. Here is how to close current tab in browser window.
How to Get ID of Element That Fired Event in jQuery
Sometimes you may need to get ID of element that fired event in jQuery. Here are the steps to do it.
How to Get Property Values of JS Objects
How to Scroll to Bottom of Div
How to Remove Empty Element from JS Array
Sometimes you may need to remove empty element from JS array. Here are the different ways to do this.
How to Check if Variable is Array in JavaScript
How to Get Highlighted/Selected Text in JavaScript
Sometimes you may need to get highlighted/selected text in JavaScript. Here are the steps to get highlighted text from your web page.