Friday, 25 August 2017

what are the Advantages of Jquery over Javascript ?

There are so many Advantages of Jquery over the JavaScript , some of them are described below.

1)Cross Browser Support
2)Jquery is Easy to use than JavaScript.
3)Jquery is able  to do more work with less code or we can say that in less line of codes we performs more work but in javascript we have to write more line of codes for same task.
4)Jquery is Extensible.
5)Jquery has Rich AJAX Support.
6)Jquery has large development community and many ready to use pluggins.
7)Jquery has excellent documentation and tutorials are available on Internet due to large community of developers.

For more understanding of above  points , I here want to explain some example for Cross Browser Support..

I have a line of code like

<script type="text/javascript">
         window.onload=   function ()
            {
document.getElementById("Button1").addEventListner('click',clickHandler,false)
};
function clickHandler()
{
alert("Hello Everyone");
}
</script>

The above code is works fine IE 11 but throwing a error on IE 6.....But in Jquery it is works fine with both the browsers.



No comments:

Post a Comment

Creating First WEB API Project from scratch ?

  For creating Web API project open your Visual Studio Editor and Create New Project as shown in below figure. Now you have to select  ASP.N...