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

dynamically added modal buttons throwing errors in IE7 #30

Open
o0Silas0o opened this issue Apr 12, 2013 · 0 comments
Open

dynamically added modal buttons throwing errors in IE7 #30

o0Silas0o opened this issue Apr 12, 2013 · 0 comments

Comments

@o0Silas0o
Copy link

Hey,

I am adding modals dynamically with jQuery's prepend function. On all other browsers this is fine, the modals work perfectly. But on IE7 an error is thrown.
"Syntax error, unrecognized expression: http://10.0.1.4/#IC-99-modal-wrapper"

This is the markup for the button that is prepended to it's parent

  • This is the wrapper markup for the modal that is prepended to it's parent

    This is the js I call when the page loads, inside jQuery document ready
    $("a[rel*=modal]").leanModal({
    top: 200,
    overlay: 0.4,
    closeButton: ".modal_close"
    });

    Has anyone else tried using leanModal with dynamically added elements?

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant