JSFiddle - React, Tailwind, and code Playground
HTML
<div id="chart1"></div>
<div id="tochart">
<input type="text" value="5">
<input type="text" value="4">
<input type="text" value="3">
<input type="text" value="2">
<input type="text" value="1">
</div>
<script src="http://mytryx.com/__data/assets/js_file/0004/6709/jquery.jqplot.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://mytryx.com/_media/sys/core/ui/css/3rd-party/jplot.css">
JavaScript
str = [];
$('#tochart').children("input").each(function(index) {
str[index] = $(this).val()
});
var allString = new Array(5);
allString = str;
alert(allString);
var plot1 = $.jqplot('chart1', [str]);