Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All ,
I am quest new to jquery and JavaScript . but in my project I have got a fancybox returning some information but I neeed to create a new instance of it . How would I go about doing this please ?


how would i create a new instance of it in the code below .. thank you
JavaScript
script type="text/javascript">

            $(document).ready(function () {

                
            $("a#inline").fancybox();

            });

        >/script>
Posted
Updated 18-Aug-15 0:26am
v4
Comments
Afzaal Ahmad Zeeshan 18-Aug-15 6:47am    
You would get the help from the API itself. I personally have no idea what this API or library is all about.
New instance means? You want to apply fancy box in some other control?
1Future 18-Aug-15 6:57am    
exactly that!
See my answer.

1 solution

JavaScript
$("#AnotherControlId").fancybox();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900