JSFiddle - React, Tailwind, and code Playground

by charlescarver

HTML

<input value="hi"/>
<input value="no" />

JavaScript

var data = "";
$("input").each(function(index, element) {
    data += $(this).val() + ", ";
});
alert(data);