我有模态确认删除的问题。模态显示但无法确认删除。这是我的代码。
Hhml:
<button type="submit" email-confirm></button>
Jquery函数:
$('button[email-confirm]').click(function (e) {
var type = $(this).attr('type:submit');
if (!$('#dialog').length) {
$('body').append('<div id="dialog" class="modal modal-block" role="dialog"><p>Do you want to delete?</p><button id="dialogConfirm">Confirm</button><button id="dialogCancel" data-dismiss="modal">Cancel</button></div>');
}
$('#dialogConfirm').attr('type:submit', type);
$('#dialog').modal({ show: true });
return false;
})
答案 0 :(得分:1)
$ ./bin/str_common_words "my flea and bat" "your snake & rat"
finding common words between:
s1: my flea and bat
s2: your snake & rat
no common words.