why jquery is used instead of javascript?
jQuery was introduced to make development with JavaScript easier. It will reduce the development time. ... jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is easier to use compared to JavaScript and its other JavaScript libraries.