假设当用户点击某个按钮时,我想显示带有忙碌图标的Bootstrap对话框,就像下面一个小尺寸的图标一样.当服务器端内容来自jQuery AJAX请求时,Bootstrap对话框将自动调整大小以适应内容数据.请指导我如何使用Bootstrap Modal和jQuery实现它.
我搜索了很多Google以获得这种Bootstrap对话框,但没有发现任何概念.
如何只滚动列表?我想要.text和.link-item固定,只在容器内的列表上滚动.
.container {
position: relative;
float: right;
width: 74.4%;
height: 150px;
background-color: rgb(230, 230, 233);
margin-top: 30px;
box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.1), 0 4px 4px 0 rgba(0, 0, 0, 0.15);
text-align: left;
border-radius: 4px;
}
.text {
position: fixed;
font-size: 12px;
font-weight: 600;
font-family: 'Open Sans', sans-serif;
color: rgb(116, 124, 142);
float: left;
padding: 10px 0px 0px 40px;
}
.box {
position: absolute;
padding: 20px 50px 0px 30px;
color: rgb(116, 124, 142); …Run Code Online (Sandbox Code Playgroud)我有多个输入:
<input class="pdf-in pdf-bg custom-inbox pdf-bg-3 rate_1 cant_be_empty" type="text" onchange="doMultiplication(1)" onkeyup="doMultiplication(1)">
<input class="pdf-in pdf-bg custom-inbox pdf-bg-3 rate_2 cant_be_empty" type="text" onchange="doMultiplication(2)" onkeyup="doMultiplication(2)">
Run Code Online (Sandbox Code Playgroud)
我想循环遍历它们并获取值.这是我的代码:
$("input[class^='rate_']").each(function() {
alert('hi');
totalTime = timeSum(totalTime, $(this).val());
});
Run Code Online (Sandbox Code Playgroud)
它不起作用.有任何想法吗?
请注意,这些字段是由AJAX调用生成的.