i know jquery like manipulating the data and so but confused with the jquery plugins. how to use them is always a confusing thing for me so how to learn and use them?
jQuery provides a very convenient way to extend the library, so anyone can write a plugin. This is very cool, but naturally this also means that these plugins can vary heavily in quality and documentation; all you can do is read through the API, give it a shot and see if it works for you.
That said, most of them basically work the same way: do something on the current jQuery object (i.e. a set of DOM elements). It might be helpful to read through the plugin section in the jQuery learning center; if you can write a basic plugin yourself, you’ll have a better understanding of how other plugins work.
jQuery is a library (a collection) of JavaScript functions which as m3g4p0p posted can be extended.
Perhaps you are having trouble understanding dependencies?
For example, if a plugin relies on jquery-ui functions, since jquery-ui relies on core jquery functions you need to load each eg. (in butchered pseudo-html)
<link "jquery">
<link "jquery-ui">
<link "plugin">
You can then use the plugin’s functions - typically before the </body>
tag after the DOM has loaded in.
I imagine the quality of documentation each plugin has varies, so having a good grasp of JavaScript will go far in letting you know what each plugin does and how to use them.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.