Welcome To Snipplr
Everyone's Recent jQuery Snippets Tagged list
- All /
 - JavaScript /
 - HTML /
 - PHP /
 - CSS /
 - Ruby /
 - Objective C
 
 « Prev 1 Next »
Choose the 4th list item and change the background color to gray
        
        
        
            0 
        
        
            1092 
        
                    posted 13 years ago by epyyjop
            Just syntax examples here. First block reads, second writes. Top function just a debugging helper.
Using jquery 1.5, $(xData.responseXML).find("nodeName=z:row]").each(function(i)... may need to be written as
$(xData.responseXML).find("nodeName='z...
        
        
        
            0 
        
        
            1882 
        
                    posted 14 years ago by rumremix
            Select the first and last item in an unordered list. As an example, I add a CSS class to each.
In WordPress, it's not so easy to get wp\_list\_pages() to generate these classes. jQuery provides an easy out for javascript-enabled clients.
        
        
        
            0 
        
        
            1563 
        
                    posted 16 years ago by cyberhobo
             « Prev 1 Next »