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

后端 未结 4 2020
走了就别回头了
走了就别回头了 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:13

    I'm facing the same issue. What does your html look like? meaning, how did you structure your "divs"

    Mine looks like this: Javascript:

    
    

    And the html looks like (I tried changing the display:none):

    Inline HTML
       
    This data is to be displayed in colorbox

提交回复
热议问题