我已经为sweetalert定义了以下对话框。一切工作正常,但复选框没有出现。还有什么我需要改变? 我已经足够的搜索,但没有找到任何解决方案。html文本中的输入类型复选框不起作用
Sweetalert对话框:
swal({ title: "Are you sure?", text:" <form><input type='checkbox' name='vehicle' value='Bike'>I have a bike<br></form> Workload will be validated by you for cbs merge! <div class='text-danger'>" +wl_name+ "</div>" ,
showCancelButton: true, type: "info",
confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, validate it!", cancelButtonText: "No, cancel pleaase!",
closeOnConfirm: false, closeOnCancel: false, html:true , showLoaderOnConfirm: true},)
所有其它的HTML标签正在fine..only此复选框不上sweetalert弹出模型可见。
如果您需要更多信息,请让我知道。
改变'类型: “输入”,'来'输入:'复选框','应该修复样式问题。 'type'切换模式类型图标,而'input'切换输入类型。 – Winfried