jquery - navigation bar line underneath the selected item -


I would like to go to the navigation bar line below the selected item for style

Example with CSS below . I have seen the whole day that this is possible.

Almost like a margin, but with a different color, a rectangle with the bottom of a line is called the selected item. I tried to keep an image in this description but he said that it requires 10 establishments ????

If you

  • id = "menu" & gt; & Lt; Li data-color = "red" & gt; Menu item 1 & lt; / Li & gt; & Lt; Li data-color = "blue" & gt; Menu item 2 & lt; / Li & gt; & Lt; Li data-color = "green" & gt; Menu item 3 & lt; / Li & gt; & Lt; / Ul & gt;

    Write jquery on click event

      $ (function () {$ ("# menu"). ("Li"). ("CSS ( "Limit below", "none"); $ (this) .css ("click below border", "1px", function () {$ ("# menu"). Solid "+ $ (this ). Data ("color"));});});  

    You can use hex color code on data attributes


  • Comments

    Popular posts from this blog

    ios - How do I use CFArrayRef in Swift? -

    eclipse plugin - Run java code error: Workspace is closed -

    c - Error on building source code in VC 6 -