locked
How to call asp.net label in jquery RRS feed

  • Question

  • User1933868974 posted

    Hi, I have a little problem on calling a label from asp.net. I want to make a shuffle text animation on output that set on label. My label id on page is Label1. Can anyone help me on this.Thanks.

            $(document).ready(function () {
                $("blockquote").shuffleText("My output text", {
                    frames: 40,    // Duration In ms (Milliseconds) Of Shuffle For Each Letter
                    maxSpeed: 1000,  // Max Duration In ms (Milliseconds) Of Global Shuffle
                    amount: 3,     // Amount Of Shuffle For Each Letter
                    complete: null   // Do Something When Shuffle Is Completed
                });
            });

    Friday, April 13, 2018 1:34 AM

Answers

All replies

  • User-330142929 posted

    Hi Ash93.

    My label id on page is Label1.

    try this code.

    $(function () {   
                $("#Label1").shuffleText("My output text", {
                    frames: 30,
                    maxSpeed: 2500,
                    amount: 4,
                    complete: function () {
                        // Do something
                    }
                });
            });

    This is Jquery Basic Selector.Such as 

    • $("p")  tag Selector
    • $("#id") ID Selector
    • $(".class") class Selector

    Here is some related details.

    http://api.jquery.com/category/selectors/basic-css-selectors/

    http://api.jquery.com/category/selectors/

    look forward to your reply

    best regards

    Abraham

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 13, 2018 6:14 AM
  • User1933868974 posted

    Hi Abraham,

    Thanks a lot for your sharing. Its really help me.

    Friday, April 13, 2018 8:14 AM