我点击删除按钮时动态添加两个标签(只是为了让UI看起来更好),我无法删除这两个BR添加的空间.如果我在控制台中看到,它显示为
(小写),我尝试过大写,小写.去掉().
var container = $("#CCcontainer")
container.append("<div id =" + removeID + " ><div class =\"form-group col-sm-10\"></div><div class =\"form-group col-sm-2\"><button id=\"btn" + removeID + "\" type=\"button\" class=\"btn btn-warning form-control\">Remove Card</button></div></div></BR></BR>");
//Below line is in a remove Card click action.
$( "<br/>" ).remove();
Run Code Online (Sandbox Code Playgroud)
有人可以帮助jhow删除这个空间吗?
我查看了下面的示例,并尝试添加其他功能.我想最初禁用其他两个表,当我从第一个选项卡提交表单然后启用第二个选项卡.我尝试过使用jQuery UO和jQuery.但是无法使用Bootstrap和jQuery.
这是我到目前为止所尝试的.
$(document).ready(function() {
$('#profile').attr('class', 'disabled');
$('#message').attr('class', 'disabled');
$('#profile').removeAttr('data-toggle');
$('#messages').removeAttr('data-toggle');
});
Run Code Online (Sandbox Code Playgroud)