KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is this possible? For me to get the eq() value? For example, if I click the li:eq(2) , var x will become 2 . Here's the code. $('#numbers ul li').click(function(){ x=$(this).eq().val(); alert(x); });
Tags (comma-separated)
Save Edits
Cancel