How do I use colorbox to show hidden divs on my page without hardcoding?

后端 未结 4 2017
走了就别回头了
走了就别回头了 2021-02-13 03:31

I\'m using Colorbox to show the html content of hidden divs on my page. I can get this to work perfectly with the following:

$(\"a.colorbox\").colorbox({width:\         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-13 04:22

    return "#" + elementID; 
    

    will have the desired effect as David says.

提交回复
热议问题