MVC4 Classic
wijtooltip Step 2 of 3: Initializing the Widget

In the previous step, you added markup to add the content that will appear for the tooltip. Now you can add the jQuery script to initialize the widget.

After the closing </div> tags you added in the previous step, enter the following jQuery script to initialize the wijtooltip widget:

<script id="scriptInit" type="text/javascript">
        $(document).ready(function () {
            $("#tooltip>a").wijtooltip();
            $("#closeBehavior").change(function () {
                $("#tooltip>a").wijtooltip("option", "closeBehavior", this.value);
            });
        });
      
       
    </script>
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback