I learn programming skill at code academy. I have 2 skills at the beginning basic java script and how to make a website with basic html, css and bootstrap framework, jquery adding.
"JavaScript is a programming language used to add interactivity to a web page. jQuery simplifies JavaScript syntax and makes it easier to build interactive web pages that work across multiple browsers.
"JavaScript is a programming language used to add interactivity to a web page. jQuery simplifies JavaScript syntax and makes it easier to build interactive web pages that work across multiple browsers.
jQuery enables us to do three main things on a web page:
- Events. Respond to user interactions.
- DOM Manipulation. Modify HTML elements on the page.
- Effects. Add animations.
In order to make interactive web pages with jQuery, it's useful to know a few things about JavaScript.
JavaScript is a programming language that jQuery is written in, and knowing JavaScript will be helpful for understanding and writing your code.
Some define:
Events
User interactions with a web page are called events.
We can write a function that specifies what to do when an event occurs. This function is called an event handler.
Another common user event is the keypress event. A keypress event occurs when a user types a key on the keyboard.
DOM:
These six jQuery methods let you control more aspects of HTML elements:
.hide()hides the selected HTML element.show()displays an element.toggle()alternates hiding and showing an element.addClass()adds a CSS class to an element.removeClass()removes a class from an element.toggleClass()alternates adding and removing a class from an element- Notice where
.toggleClass()is located. You can replace.toggleClass()with any of the five other methods. While each method creates different effects, their usage is similar. - There are three common jQuery methods that use these relationships to access and modify elements on the page.
.next()
- The
.next()method gets the next sibling of the selected element. .prev()
The.prev()method gets the previous sibling of the selected element..children()
The.children()method gets the children of the selected element.If provided a selector, the.children()method can get a specific child.
Comments
Post a Comment