SageFix. LetsFix!  
Current Location : Home > Web Development > JavaScript > jquery selector: select list individually with jquery Share/Save/Bookmark    

Main Menu
SageFix - Let's Fix

Board Categories
    Web Site Designing
- Graphics
    Web Development
- .NET
- Classic ASP
- JavaScript
- PHP
    WebSite Management
- Promotion Techniques
- Search Engine Optimization
    Databases
- MySQL

Tutorials

Database Connection Strings

  Contact Us


 1 - 3 of 3 [Total 1 Pages]  
jquery selector: select list individually with jquery      Jul 16, 2009, 08:42 1
  
hi,

how can i select the individual list with jquery, for instance,

<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>

i can select them individually with normal javascript like this,
Code:
var links = element.getElementsByTagName("li");links[1].onmouseover = function(){	...	}links[2].onmouseover = function(){	...	}

but this one below will select all the list at once...

Code:
$('li').hover(function(e){...});
please let me know if u have any ideas.
many thanks,
Lau

 
      Jul 16, 2009, 17:18 2
  
Code:
var links = $('li');links[0].onmousover ...

 
      Jul 16, 2009, 17:51 3
  
Quote:
Code:
var links = $('li');links[0].onmousover ...
got it! thank you very much!

 
 1 - 3 of 3 [Total 1 Pages]  









Subscribe to our mailing list
email


Current Location : Home > Web Development > JavaScript > jquery selector: select list individually with jquery Share/Save/Bookmark    

Development problem? SageFix is completely free -- paid for by advertisers and donations. Click here to Contact Us If you have any query. Enjoy!
Request processed in 0.00011 seconds Home - Contact Us - Terms Of Service - Privacy Policy - Copyrights - Top
Advertisements do not imply our endorsement of that product or service.
Current server time now is 09-Sep-2010 09:43:47
Copyright © 2009 Sagefix Inc. All rights reserved.
Powered By SageFix