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

前端 未结 0 739
时光说笑
时光说笑 2021-02-15 01:20

This is my jquery code

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


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