---
title: "jQuery base code to create a jQuery plugin"
description:
  "If you are creating a jQuery plugin then this base code will get you started."
canonical_url: "https://www.bigbinary.com/blog/jquery-base-code-to-create-a-jquery-plugin"
markdown_url: "https://www.bigbinary.com/blog/jquery-base-code-to-create-a-jquery-plugin.md"
---

# jQuery base code to create a jQuery plugin

If you are creating a jQuery plugin then this base code will get you started.

- Author: Neeraj Singh
- Published: July 24, 2009
- Categories: jQuery

_Following code has been tested with jQuery 1.3 ._

Recently I was discussing how to create a jQuery plugin with a friend of mine.
In the end I had a base code that should work as a starting point of any jQuery
plugin.

[Take a look](http://gist.github.com/154375) here .

## Links

- [Human page](https://www.bigbinary.com/blog/jquery-base-code-to-create-a-jquery-plugin)
