Professional Documents
Culture Documents
Dons
Dons
SUBJECT: IPT
SECTION/YEAR: BSIT-3D SIR: ESCALANTE, MARK
1. What is jQuery?
jQuery is a JavaScript framework designed to simplify HTML DOM tree traversal and
manipulation, as well as event handling, CSS animation, and Ajax. It is free, open-source
software using the permissive MIT License.
jQuery selectors are used to "find" (or select) HTML elements based on their name, id,
classes, types, attributes, values of attributes and much more.
The removeAttr() method is an inbuilt method in jQuery which is used to remove one or
more attributes from the selected elements. Remove the style attribute from all <p>
elements:
$("button").click(function(){
$("p").removeAttr("style");
});
5. What is val() method/function? T he val() method returns or sets the value attribute of the
selected elements. When used to return value: This method returns the value of the value
attribute of the FIRST matched element.