I have built a very simple show/hide toggle in jQuery. It works on every browser that I have tried (Chrome, Safari, FireFox on Mac & Chrome, FireFox & Edge on Windows). I reviewed Chrome JavaScript Console in Developer, and there were no errors.
But my client uses IE11, and it is not working for them.
I created a jsFiddle HERE for them to test off-site, and they are not able to load it because jsFiddle doesn't support IE.
I also created a CodePen HERE for them to test as well, but it looks like CodePen doesn't support IE11 either.
I understand that IE11 is not the dominate browser, but that is what my client is wanting to test on. I am not sure why my code isn't working for them.
Can someone help me debug my code?
$(document).ready(function() {
$("span.awesome").click(function(event) {
event.preventDefault();
$("div.findersearch").toggle();
});
});
<p class="contacts"><span class="awesome"><i class="fa fa-search"></i></span></p>
<div class="formhide">
<div class="findersearch" style="display: none;">
<form id="mod-finder-searchform763" action="/searchresults.html" method="get" class="form-search" role="search">
<label for="mod-finder-searchword763" class="element-invisible findersearch">Search</label><input type="text" name="q" id="mod-finder-searchword763" class="search-query input-medium" size="25" value="" placeholder="Search ..."><button class="btn btn-primary hasTooltip search findersearch" type="submit" title="Go"><span class="icon-search icon-white"></span>Search</button>
<input type="text" name="6da3a870259695f000419f7ec6251833" value="" style="float: left; position: absolute; z-index: 1000000; left: -10000px; top: -10000px;"></form>
</div>
</div>
<script src="https://use.fontawesome.com/09f43ba218.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<p class="contacts"><span class="awesome"><i class="fa fa-search"></i></span></p>
<div class="formhide">
<div class="findersearch" style="display: none;">
<form id="mod-finder-searchform763" action="/searchresults.html" method="get" class="form-search" role="search">
<label for="mod-finder-searchword763" class="element-invisible findersearch">Search</label><input type="text" name="q" id="mod-finder-searchword763" class="search-query input-medium" size="25" value="" placeholder="Search ..."><button class="btn btn-primary hasTooltip search findersearch" type="submit" title="Go"><span class="icon-search icon-white"></span>Search</button>
<input type="text" name="6da3a870259695f000419f7ec6251833" value="" style="float: left; position: absolute; z-index: 1000000; left: -10000px; top: -10000px;"></form>
</div>
</div>
