Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery prev()

// HazaaZOOZ - jquery - How to get the Previous element of element by class name jquery

//Example to make the backgroud into yellow

$(document).ready(function(){
    $("li.start").prev().css( "background", "yellow" );;
});
 
PREVIOUS NEXT
Tagged: #jquery
ADD COMMENT
Topic
Name
9+6 =