Javascript Vs jQuery


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.


Javascript ID Selector

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


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.


jQuery ID Selector

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