JSFiddle - React, Tailwind, and code Playground

by Amar Nyayapati

HTML

<div>
    We have a team of 7 Dedicated and Experienced Sales Executives who are trained to understand our Client's need and cater to their interest very well. We not only provide Timely &amp; Dependable Delivery, but also offer flexible payment terms that can fit their finance.
</div>
<script>
    var str = $("div").text();
    var arr = str.split(" "); 
    var arr1 = [];
    arr.forEach(function(a,b){
        h=$("<span>").wrapInner(a)[0];
        arr1.push(h.outerHTML);   
    });
    $("div").html(arr1.join(' '));
    $("span").click(function(){
        $(this).toggleClass("textClicked");
    });
</script>

CSS

.textClicked{
    color:white;
    background:blue;
}