How do I connect a lightbox to a button already coded as a "class" item.

  • Profile Image
    Asked on March 27, 2013 at 01:22 AM

    I've been using your product for some time. However, I've always connected the lighboxes to activate from a string of text using this type of statement:

    <a class="lightbox-30631854077960" style="cursor:pointer;color:blue;text-decoration:underline;">.

    However, I'm now trying to link the lightbox to a string of text that is between a button statement like the following:

    <a target="_blank" href="" class="btn btn-primary" >APPLY NOW</a>.

    The problem is that I can't do it like I used to since there is already a class statement for the button action that conflicts with putting another class statement for the lightbox. 

    Could you please provide us with a solution.


    Thanks in advance.

  • Profile Image
    Answered on March 27, 2013 at 03:48 AM


    You can append your form lightbox class on your existing class. That should be fine. Example:

    <a target="_blank" href="" class="btn btn-primary lightbox-30631854077960" >APPLY NOW</a>

    I have also checked the form on your site and it seems to be working fine now. Did you managed to sort this out? 

    Let us know if my suggestion does not work for you so we can assist you further. Thank you!

  • Profile Image
    Answered on March 28, 2013 at 02:48 AM

    Very nice, thank you. I simply deleted the target and href statement to make it work the way I needed. Way to come through, AGAIN!

  • Profile Image
    Answered on March 28, 2013 at 03:11 AM

    Great! Cheers! =)