JavaScript and JQuery: Interactive Front-End Web Development by Jon Duckett
Author:Jon Duckett [Jon Duckett]
Language: eng
Format: epub
Tags: JavaScript
Publisher: John Wiley & Sons
Published: 2014-06-29T21:00:00+00:00
USING INDEX NUMBERS
This example demonstrates how jQuery gives an index number to each of the elements in the jQuery selection.
The :lt() and :gt() selectors and the .eq() method are used to find elements based on their index numbers.
For each of the matching elements, the value of the class attributes are changed.
1. The :lt() selector is used in the selector to pick list items with an index number less than 2. It removes the value hot from their class attribute.
2. The .eq() method selects the first item (using the number 0 because the index numbers start at zero). It adds the value of complete to the class attribute.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Ada | Ajax |
Assembly Language Programming | Borland Delphi |
C & C++ | C# |
CSS | Compiler Design |
Compilers | DHTML |
Debugging | Delphi |
Fortran | Java |
Lisp | Perl |
Prolog | Python |
RPG | Ruby |
Swift | Visual Basic |
XHTML | XML |
XSL |
Hello! Python by Anthony Briggs(9871)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9761)
The Mikado Method by Ola Ellnestam Daniel Brolund(9752)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8262)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7749)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7745)
Grails in Action by Glen Smith Peter Ledbrook(7671)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7521)
Windows APT Warfare by Sheng-Hao Ma(6516)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6383)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6262)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6135)
Kotlin in Action by Dmitry Jemerov(5023)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4301)
Functional Programming in JavaScript by Mantyla Dan(4023)
Solidity Programming Essentials by Ritesh Modi(3851)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3625)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3573)
The Ultimate iOS Interview Playbook by Avi Tsadok(3542)
