JSFiddle - React, Tailwind, and code Playground

by brightonmike

HTML

<input class="Fahrenheit" type="hidden" value="46"/>
<h5 class="Total"></h5>
<input class="Fahrenheit" type="hidden" value="54"/>
<h5 class="Total"></h5>
<input class="Fahrenheit" type="hidden" value="50"/>
<h5 class="Total"></h5>
<input class="Fahrenheit" type="hidden" value="54"/>
<h5 class="Total"></h5>

JavaScript

$(document).ready(function() {          
                 
                var ValOne = $('.Fahrenheit').val();
                var totalTotal = (((ValOne * 1)-32) * (5 * 1) / (9 *1));                         
                $('.Total').text(totalTotal);
            
});