How can I call a jquery function from javascript code?

I am using telerik's RadAjaxPanel and it has a ClientEvents-OnResponseEnd client event. So I wrote a JavaScript function:

function OnResponseEnd(ajaxPanel, eventArgs) {
        // call jQuery here
    };

      

and my question is how to call the jQuery function inside? I would like to manipulate some html elements using the .slide (..) function.

+1


a source to share


2 answers


jQuery is javascript is a js library. Just call the function eg. $ (This is) .slide (); in function.



+12


a source


You can call jQuery functions inside the function shown above. Of course, you need to import the jQuery library before you can do this.

Example:



function OnResponseEnd(ajaxPanel, eventArgs) {
    $('div').slide(...);
};

      

+4


a source







All Articles