1

I am using the following code to simulate a click when a page loads:

<script type="text/javascript">
 $(document).ready(function() {
     $('ul.dk_options_inner li:nth-child(2) a').trigger('click');
 });
 </script>

It works in all browsers apart from IE11. Are there any alternatives to make this work?

Scot
  • 17
  • 3
  • Possible duplicate of [How to trigger a click on a link using jQuery](http://stackoverflow.com/questions/5811122/how-to-trigger-a-click-on-a-link-using-jquery) – Andreas Feb 17 '16 at 17:40
  • Please post a complete code example so that we can try to reproduce the issue. Are you getting any errors in IE? – j08691 Feb 17 '16 at 17:40
  • Just getting the issue in ie11. I will try and put the code together. – Scot Feb 17 '16 at 17:42

0 Answers0