Sumit

Highlight the text Using Jquery/javascript

Below is the snippet that you can use to highlight the text on the page. var text = “Search Text”; if (window.find && window.getSelection) { document.designMode = “on”; var sel = window.getSelection(); sel.collapse(document.body, 0); while (window.find(text)) { console.log(text) document.execCommand(“HiliteColor”, false, “yellow”); sel.collapseToEnd(); } document.designMode = “off”; }

Some of the best books to read for growth and personal development

“Atomic Habits” by James Clear – A practical guide to building good habits and breaking bad ones. “The Power of Now” by Eckhart Tolle – A spiritual guide to living in the present moment and achieving inner peace. “The 7 Habits of Highly Effective People” by Stephen Covey – A classic book on personal and …

Some of the best books to read for growth and personal development Read More »