Javascript Vs jQuery

javascript

Javascript is a most popular script language on internet which works on all major browsers.

If use javascript, you need write your own script which may take time to accomplish your task.

Example:

Javascript ID Selector

var name = document.getElementById("fname");

jQuery

jQuery is a framework. It is a fast and concise Javascript Library that simplifies HTML document.

If use jQuery need not to write much scripting which already exist in Library.

Example:

jQuery ID Selector

var name = $("#fname");
Tagged as: