Slidetoggle does not work on first click, only on second click

前端 未结 0 1320
孤城傲影
孤城傲影 2021-02-15 01:22

This is my jquery code

function hideShowh2(id, target) {
    $(`#${id}`).on(\'click\',function(){
        $(`#${target}`).slideToggle();
    })
    console.log(\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题