0
votes

I was using IE11 to run our website. But today when we start to migrate to edge, toggle buttons on our website are not working anymore. If I turn off, it just showing both on and off at the same time. But in IE11, it was working really well and no error were cause. Is there anyway to fix it?

$(".hideicon").click(function() { //hide downtime
  var id = $(this).val();
  var dt = id.split('|');
  var sh = 'h';
  toggle(dt[0], dt[1], sh);
  //toggle(id, sh)
});

$(".showicon").click(function() { //hide downtime
  var id = $(this).val();
  var dt = id.split('|');
  var sh = 's';
  toggle(dt[0], dt[1], sh);
  //toggle(id, sh)
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<div><img class='showicon' id='imgShow0' value='x|0' src='show.png' alt='click to show all details' /></div>
<div><img class='hideicon' id='imgHide0' value='x|0' src='hide.png' alt='click to hide all details' /></div>
What is toggle ? I don't see anything in there that shouldn't be working...Cerbrus
@Cerbrus for show and hidezeetk
Yea, I get that, but it's likely that the problem is in there. Can you add the toggle code to your question?Cerbrus
@Cerbrus Do you mean the function toggle ?zeetk