Skip to content Skip to sidebar Skip to footer

Jquery Plugin Vs Javascript

Can somebody please explain the pros and cons for below. Am having a function to get the url querystring parameters, but I need to know which is the best way to write the function.

Solution 1:

I found a while ago this sentence:

Don't learn jQuery. Just use it.

It's one of the best advices for a newbie, I think.

jQuery is just an addition to javascript. It simplifies DOM traversing/manipulation, makes easy event handling and so on, but it is not something you should start learning before you know vanilla Javascript.

Regarding your example, it is not the best thought example for jQuery plugin.

The syntax you suggested ($("#targetDom").getQueryString("name");) implies that you treat URL query string as attached somehow to the HTML element, which is wrong...

Post a Comment for "Jquery Plugin Vs Javascript"