JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
    <li><a href="http://google.com">Google</a></li>
    <li><a href="http://stackoverflow.com">StackOverFlow</a></li>
    <li><a href="http://youtube.com">YouTube</a></li>
    <li><a href="http://en.wikipedia.org">Wikipedia</a></li>
</ul>

JavaScript

$(function () {
    $("a").click(function (event) {
        event.preventDefault();
        alert("Hello world!");
    });
    
    var xmlDoc = $(new ActiveXObject("msxml2.domdocument.6.0"));
    xmlDoc.get(0).appendChild(xmlDoc.get(0).createNode(1,"ConnectionString",""))
    xmlDoc.find("ConnectionString").each(function () {
         $(this).text("test");
      });  
    
});