setContent to use jQuery elements
craftpip opened this issue · 0 comments
craftpip commented
jquery-confirm version:
v3.x.x
I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request
[ ] support request
Current behavior:
setContent does not work with DOM elements.
Expected behavior:
Accept DOM elements in setContent to set element directly.
example:
var a = $.confirm({
content: $('.otherElement').clone()
});
a.appendContent($('<div />').html('div element appended'));
a.prependContent($('<div />').html('div element prepended'));