I wanted to use pure javascript for creating many modals on same page.And here is codepen :)
For further actions, you may consider blocking this person and/or reporting abuse
I wanted to use pure javascript for creating many modals on same page.And here is codepen :)
For further actions, you may consider blocking this person and/or reporting abuse
Arindam Majumder -
Todd H. Gardner -
Victoria -
Nico Bistolfi -
Top comments (7)
Try modifying it and publish it as a library.
It is pure dead simple. Let it keep be as simple it is... no library.... only pure css and js. Anyway, thanks for good suggestion
I respect this mentality more than I can express with words
hi how would i incorporate the escape key? thannks
var KEYCODE_ESC = 27;
$(document).keyup(function(e) {
if (e.keyCode == KEYCODE_ESC) $('.cancel').click();
});
ooo thanks. is it possible in vanilla javascript? thanks so much.
I converted it to vanilla JS here: codepen.io/Realto619/pen/ZEyWjKm