New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setContent to use jQuery elements #313

Closed
craftpip opened this Issue Aug 10, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@craftpip
Owner

craftpip commented Aug 10, 2017

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'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment