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

No branches or pull requests

1 participant