JSFiddle - React, Tailwind, and code Playground

by DanBrown180

HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<div class = "text">
    blah blah
</div>

<div id = "text">
    blah blah2
</div>

JavaScript

var divvalue = $('.text').html()
    alert (divvalue);
    var divvalue2 = document.getElementById("text").innerHTML;
    alert (divvalue2);