Tuesday, February 7, 2012

Jquery Tutorial 2


In this post we are going to see how to eliminate particular tag lies under parent tag.

for example  if you are having below exmaple :

<ul>
    <li>
    <li>
    <li>
    < id='eliminate li>
<ul>




$("#lis").not("#eliminate").css("background-color","blue");

If you run above code, background color will change all li tags other than eliminate id li tag... so this is very useful for creating tabs in any application mouse over offect of menus....