You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: