Skip to content

setContent to use jQuery elements #313

New issue

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

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

Already on GitHub? # to your account

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

setContent to use jQuery elements #313

craftpip opened this issue Aug 10, 2017 · 0 comments

Comments

@craftpip
Copy link
Owner

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'));
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant