Click here to Skip to main content
15,308,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ok, this is not a question where I am having issues, but seeking an advise from on JQuery plugin development. We have to agree, there are many JQuery plugins in different categories such as image gallery, form validations, effects and so on.

I was about to create a basic JQuery plugin with methods. I am new in JQuery plugin development, but I do have my required tutorials to cretae one and I did make one before when learning.

The question is:

Is it worth to create a JQuery plugin with methods, or simply create an open source script plugin, where a user can modify freely and embed it in their websites?

In other words, I do not see a huge difference, by creating a JQuery plugin with methods, with an open source JQuery or JavaScript plugin without methods where you can customize freely. For example, there is TinyMCE, a rich text editor, it is a plugin in pure JavaScript and does not propose methods for people to modify. If you want to modify to add/remove features, simply do it by coding as it is open source. TinyMCE just propose you a default functionality.

However, the only advantage a JQuery plugin with methods will have is to let people who have poor knowledge on web to configure their plugin easily while an open source script plugin like TinyMCE for instance, you need to code by yourself if you want to ameliorate.

What do you think?
saud_a_k 7-Nov-12 3:57am
jQuery mkes things easier,
Just so you mentioned TinyMCE, when you use that plugin on a textarea, You cannot find the control using document.getElementById() or $find(). You'll have to use the TynyMCE again to like: tinymce.get(txt.attr('id'));
What do you say?
bunnyali2013 7-Nov-12 4:06am
The TinyMCE was just a reference.. It can be an app in JQuery, normal, and to make in action, you simply call it in a function that's all. If you want to configure, you code by your own.

1 solution

Best feature available with jQuery is chaining of calls to items. So If you want to create something that is. Worth to stack with other jQuery specific tools like hide, style, click etc. then by all means do it. In another case it depends of what you want to create.

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