<Scripttype= "Text/javascript"> $(function(){ //Add a category for the first element $("Li:first"). addclass ("GetFocus"); }) $(function(){ //Add a category for the last element $("Li:last"). addclass ("GetFocus"); }) $(function(){ //increased removal of all element categories matching the given selector $("Li:not (. Notclass)"). addclass ("GetFocus"); }) $(function(){ //Increase all element categories with an even number of index values, counting from 0 $("Li:even"). addclass ("GetFocus"); }) $(function(){ //Add all element categories with an odd index value, counting from 0 $("li:odd"). addclass ("GetFocus"); }) $(function(){ //adds an element class for a given index value, counting from 0 $("Li:eq (1)"). addclass ("GetFocus"); }) $(function(){ //Increase all element categories greater than the given index value, counting from 0 $("li:gt (1)"). addclass ("GetFocus"); }) $(function(){ //Increase all element categories less than the given index value, counting from 0 $("li:lt (4)"). addclass ("GetFocus"); }) $(function(){ //add title class element category $("Div H1"). CSS ("width","238"); $(": Header"). addclass ("GetFocus"); }) $(function() {Animateit ();//Add animation effect element category $("#spnMove: Animated"). addclass ("GetFocus"); }) functionAnimateit () {//animation effects $("#spnMove"). Slidetoggle ("Slow", Animateit); } </Script>
Using the jquery basic filter Selector