Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to call the jquery funtion in html?
Posted

1 solution

If you asked how to call a function in Javascript, I would be weird, but would make some sense. The answer would be: jQuery is a Javascript library, no more no less, so the function is called the same way as in Javascript. But perhaps you did not express yourself properly and just need to know how a jQuery code can be properly "bootstrapped". Even though the answer would be again "the same way as always with Javascript and HTML", it's good to read this:
http://learn.jquery.com/about-jquery/how-jquery-works[^].

You should understand that the script put as a child of the <body> element of your HTML is automatically called on load; this script will work as an entry point. And of course the call could be added as the element attributes triggering element events:http://en.wikipedia.org/wiki/DOM_events[^].


—SA
 
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