Multiple Instances of Google Translate

后端 未结 6 1935
长情又很酷
长情又很酷 2021-02-15 18:35

I\'m trying to get multiple instances of Google Translation Drop Down to show up, but it seems it will only pick one to show up.

Full Page Code

6条回答
  •  情歌与酒
    2021-02-15 19:36

    So I know this is an old question but I just stumbled across it. The solution I came up with isn't pretty, but it works.

    For context, I have my google translate code in a div with a class of, "gtr"

    Using JS / jQuery

    setTimeout(function(){
        $('.gtr').clone().appendTo('.drawer .nav-util li.gt');
    }, 3000);
    

提交回复
热议问题