I want to display the jquery function result to the bootstrap model-body.
jquery function
function randomNumberRange(min, max)
{
var x= Math.floor(Math.random() * (max - min + 1) + min);
console.log(x);
return Math.floor(Math.random() * (max - min + 1) + min);
}
in .html file model body is
<div class="modal-body">
</div>
I want the value of x should get display in model body in html.
there is one submit button to launch model
<button onclick="location.href = '/poll/result/';" id="myButton" class="float-left submit-button" >submit</button>
</div>
so once i click on the submit it should display the value of x in model body. Please help me out.