Click here to Skip to main content
15,794,475 members
Please Sign up or sign in to vote.
1.07/5 (6 votes)
See more:
is there any easy converting tools for convert java script to jQuery
Updated 10-Dec-21 1:00am

JQuery is not a language in and of itself, it is a javascript library. You don't "convert" javascript to jquery because jquery is already javascript.
Share this answer
Md. Mahfujul 8-Feb-12 0:06am    
Thank u
Sergey Alexandrovich Kryukov 8-Feb-12 0:25am    
My 5. I would also add: "Java script" does not exist because Java is not a scripting language. Should we even explain that Java and JavaScript are not related at all?
Jquery is a javascript library and it is a neat way of unobtrusive DOM scripting. So essentially it is a better way of writing javascript code. I think what you meant by 'convert' here is that - you already have a web application that has a lot of javascript written in the 'old way' - and now you want to use jQuery. If my assumption is right about your question, unfortunately there are no tools (atleast I am aware of) which will do that 'conversion' for you. It is more about learning the art of jQuery and then improving and refactoring your javascript code to use jQuery style of doing things.

If I can give an analogy to understand it better, you can write a program in the old fashioned way where there is just one class and hundreds of variables and functions in that - which does the job for you but is a nightmare in terms of maintenance, and you can write the same program using Object oriented methodologies. There are no tools to convert the old program to use OOPS methodologies - it is about learning OOPS and then refactoring and improving your code.

Probably I can give you a reference of some best practices of how not to write javascript, and then when you learn more about jQuery, you yourself will find out innovative and improved ways for writing javascript using jQuery library.

Refer this link for some jQuery examples and best practices
JQuery Examples and Best practices[^]

In-case you are totally new to the whole jQuery, please see SA's solution #3 for some references about it.
Share this answer
Sergey Alexandrovich Kryukov 8-Feb-12 0:29am    
All right, informative and useful, my 5, but I wish you also referenced some original sources. Please see my answer.
Abey Thomas 8-Feb-12 0:32am    
Yes you are right..! I thought it was easily available :) Updated.
Just in case, as nobody gave you original references to jQuery. This is trivial, but — something you need to know very well:[^],[^],[^],[^],[^].

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