Link to home
Start Free TrialLog in
Avatar of jamesdean666
jamesdean666

asked on

JQuery get first item .click

I have the following code in my site:

$(".documentor").live("click", function () {
     -- more code here
}):

When this occurs, there could potentially be several items returned.  How can I get the first item only?  Is there way to get the index of 0 for example?

Much Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jamesdean666
jamesdean666

ASKER

Thanks.