Chapter 6. Exploring the Benefits of jQuery
If you have gone through the previous chapter, you probably have implemented jQuery in your Battleship game. In this chapter, we will discuss about jQuery in detail.
The jQuery library is a JavaScript framework. It was released in 2006. People used to call it jSelect. We use jQuery in our websites so that we can work with JavaScript easily and add effects to our web pages. You may think jQuery is different from JavaScript. No! jQuery is just another JavaScript file. It is a very lightweight library that helps you to decorate your web pages more easily with less coding.
We use jQuery due to the following advantages:
- It is open source; you can edit or modify its code if required
- It is a small library (about 150 KB file)
- The community support for jQuery is very strong; you can get help from the users easily
- It is user-friendly and popular
- It supports cross-browsers
- It is openly developed; you can fix any bug or add features to it by editing the...