naughty.coder
naughty.coder

Reputation: 133

Can I learn how to use jQuery with just a basic JavaScript experience?

The question is: Is it bad to learn how to do special effects, table sorting, etc, using jQuery instead of learning the bits of code that bring that alive with pure javascript?

I have previously addressed a similar problem in a question, but I missed adding this extra inquiry!

Upvotes: 4

Views: 286

Answers (6)

tvanfosson
tvanfosson

Reputation: 532595

I think you should set yourself a goal of knowing javascript well enough to be able to author a plugin if you need it in your favorite framework. While using a framework is almost always the right way to go, there will be times when you can't find a plugin that does exactly what you need. At that point you need to know javascript well enough to be able to adapt a plugin to your needs or write your own.

Upvotes: 0

theycallmemorty
theycallmemorty

Reputation: 12962

Not a very technical answer, but as an intermediate programmer, and javascript newbie I've had no problems learning to work with jQuery. The documentation and community are very helpful.

Upvotes: 0

ticallian
ticallian

Reputation: 1641

Personally, until the beginning of this year, I used to limit my use of javascript to only helping aid the user with things like web forms.

However, after playing around with jQuery for no more than a few days, I realised how much easier it made achieving javascript effects and functionality. Now I pretty much use jQuery on most web pages, a lot of the time, just to add nicer UI effects.

A background knowledge of raw javascript will never go amiss and you will almost certainly still have to mix it in with your jQuery scripts, but when you run into troubles, nearly every problem I've had, had a solution already posted on Stack Overflow or just on Google.

Upvotes: 1

ThoKra
ThoKra

Reputation: 3029

Personally I was recommended to learn JS before learning jQuery. But started off with jQuery, and can make pretty much with it without to much JS experience. What you do need to know of JS you can just google it and learn it when needed ;)

jQuery is fantastic for us that doesn't take the time to learn everything about JS

Upvotes: 1

SLaks
SLaks

Reputation: 887777

You really should use jQuery; it will allow you to spend more time adding features instead of trying to make your code work in every browser (Note that even jQuery is not a silver bullet; you'll still have some cross-browser headaches in any non-trivial web app, especially if you need to support IE6).

There's no point in turning your back on new tools and libraries just to "stay close to the metal".

If you're afraid of lowering your value in your boss' eyes, look at it a different way. Would you prefer to hire a programmer who spends all of his time working around browser bugs, or a programmer who uses jQuery and finishes his projects faster because of it? Remember that managers are trying to ship products and make money, not simply hire elite programmers.

Upvotes: 1

i_am_jorf
i_am_jorf

Reputation: 54610

Yes you can. Doing it in JQuery isn't bad. Everyone uses some sort of Javascript library. I love JQuery. Your odds of making things that work in all browsers go up quite a bit, you get the UI done quicker, etc.

Though having a bit of Javascript knowledge is good, because when things go wrong you want to be able to debug the problem.

JQuery.com has lots of good tutorials.

Upvotes: 6

Related Questions