Click link contained in 3rd
  • tag on load
  • 前端 未结 3 1687
    旧巷少年郎
    旧巷少年郎 2021-01-27 13:33

    I have a

      :

    3条回答
    •  天涯浪人
      2021-01-27 14:00

      Use the nth-child selector. And put your code in a jQuery ready event listener. Try this:

      $(document).ready(function(){
          $('ul.options_inner li:nth-child(3) a').trigger('click');
      });
      

    提交回复
    热议问题