WEB TECHNOLOGIES
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.
height: 'toggle'
});
});
1. Which of the following is correct?
Advantages:
- Ease of use
This is pretty much the main advantage of using jQuery, it is a lot more easy to use compared to standard JavaScript and other JavaScript libraries. Apart from simple syntax, it also requires much less lines of code to achieve the same feature in comparison. - Large library
JQuery enables you to perform hordes of functions in comparison to other Javascript libraries. - Great documentation and tutorials
The jQuery website has a comprehensive documentation and tutorials to get even an absolute beginner in programming to get the ball rolling with this library.
Example websites:
Example Code:
$("button").click(function(){
$("div").animate({height: 'toggle'
});
});
Results:
Short quiz:
- jQuery is a JSON Library
- jQuery is a JavaScript Library
2. jQuery uses CSS selectors to select elements?
- True
- False
3. Which sign does jQuery use as a shortcut for jQuery?
- the % sign
- the ? Sign
- the $ sign
4. Look at the following selector: $("div"). What does it select?
- All div elements
- The first div elements
5. Is it possible to use jQuery together with AJAX?
- Yes
- No
Comments
Post a Comment