
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to call a jQuery plugin function outside the plugin?
jQuery is a JavaScript library introduced to make development with JavaScript easier. It reduces the development time. Let us see how to call a jQuery plugin function outside the plugin.
For calling, wrap the jQuery method for returning the instance of the constructor. Call prototype methods on it.
example
$.fn.myFunction = function(config){ return new myFunction (config); };
Instance the plugin and call the method −
var plugin = $('#someSelector').myFunction(); plugin.setToken(column);
- Related Questions & Answers
- How to call a function inside a jQuery plugin from outside?
- How to call a jQuery plugin without specifying any elements?
- How to create a custom jQuery Plugin?
- How to write a custom jQuery plugin?
- How can I write a custom plugin for jQuery?
- Cypress plugin for locators
- HTML5 video not working with jquery bxSlider plugin on iPad
- Browser Plugin Testing With Selenium.
- What does a JavaScript plugin consist of?
- How to call a jQuery library function?
- What is the use of jsp plugin action element?
- How to call jQuery function with JavaScript function?
- Building an XCode application using Maven plugin (SAP)
- How to call a jQuery function after a certain delay?
- Which Eclipse Plugin should be installed to work with Cucumber?
Advertisements