Home
JavaScript Tutorial
Language Basics
Operators
Statement
Development
Number Data Type
String
Function
Global
Math
Form
Array
Date
Dialogs
Document
Event
Location
Navigator
Screen
Window
History
HTML Tags
Style
DOM Node
Drag Drop
Object Oriented
Regular Expressions
XML
GUI Components
Dojo toolkit
jQuery
Animation
MS JScript
Menu
index « jQuery « JavaScript Tutorial
JavaScript Tutorial
jQuery
index
30.55.index
30.55.1.
Get index among query
30.55.2.
On click, returns the index (based zero) of that div in the page.
30.55.3.
Returns the index for the element with ID foobar.
30.55.4.
Returns the index for the element with ID foo within another element.
30.55.5.
Returns -1, as there is no element with ID bar.
30.55.6.
Use switch to check the clicked button