+ 2
How can I call a function in JQUERY?
I need to know how to call a function to use it in manipulating a button in html.
3 Answers
+ 3
@Very Hard is right: if your meaning is to know how can you use JQuery library, it's required to link it to your Html document to be available...
... but your question is unclear: you << can call a function in JQUERY >> as you call a function in JS (JQuery is just a set of JS functions -- mostly methods attached to the JQuery root object '#x27;, so a JQuery function in sense of method is called through the call of $(arguments) wich return object(s) on wich you can call methods ^^).
+ 2
https://code.sololearn.com/W8s5PedsZ085/?ref=app
way 1 and way 2
0
Calling a function in jQuery is basically the same as calling one in JavaScript..
function_name(parameter_list);
If you wish to call this function only after a particular event occurs, you can put it within the code for the event handler. If you wish to call the function after an animation/transition is complete, you can put it within the callback function.
Wherever you put it is completely dependent on what you want your program to do.
Hope this helps :)