我想将jquery函数结果显示到引导模型主体。想要将jquery函数结果显示到引导模型主体
jQuery的功能
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);
}
在.html文件模特身上
是
<div class="modal-body">
</div>
我想x的值应该得到在模特身上显示HTML。
有一个提交按钮启动模型
<button onclick="location.href = '/poll/result/';" id="myButton" class="float-left submit-button" >submit</button>
</div>
所以一旦我在提交应显示X在模特身上的价值点击。 请帮我一把。
看看这个答案 - http://stackoverflow.com/questions/14971766/load-content-with-ajax- in-bootstrap-modal – Nick
我不使用ajax这个....... – Wagh