take input use document.getelementbyid, use JavaScript function modify and return the output as an array to the div code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: onclick display array value javascript
var array = [1,20,50,100];
var cpt = 0;
//Init the 'par' div before click
document.querySelector("#par").innerHTML = array[cpt];
function randomQuote ()
{
if(cpt<array.length-1)
cpt++;
else
cpt=0;
document.querySelector("#par").innerHTML = array[cpt];
}