ISSUE: I'm facing a problem where clicking on the X (font awesome icon) doesn't close the modal popup as expected.
https://i.sstatic.net/yXnwA.jpg
LIMITED FUNCTIONALITY ON CERTAIN BROWSERS:
Currently, the X button for closing the modal works only in IE and Firefox. However, it fails to work on Chrome and Safari browsers. It does work if I use the letter "x" instead of an icon within the button tag. But, I prefer using the font awesome icon for better design possibilities.
REQUEST FOR ASSISTANCE: I have limited knowledge of JavaScript and I'm unable to resolve this issue with the existing modal setup for my signup/login functionality.
Feel free to experiment with the Fiddle provided: https://jsfiddle.net/o5vpt6ck/
HTML:
<div class="cd-signin-modal js-signin-modal"> <!-- This represents the complete modal form, including the background -->
<!-- Code snippet continued... -->
JS:
(function(){
//Login/Signup modal window - by CodyHouse.co
// JavaScript code continues...
})();