browser

jQuery is Not Needed for Browser Compatibility in 2021

You can now write scripts in plain JavaScript. Jquery is mostly not needed for compatiblity.

In 2021, Microsoft desktop and server Windowses only support Internet Explorer 11 or later (Edge). This removes the need for most compatibility hacks. Firefox and Chrome have followed JavaScript standards mostly from the start.

$("h1").text("Goodbye jQuery, my favourite JS library!")

document.querySelector("h1").innerHTML = "Hello, vanilla JavaScript!"