hello
On tab hover
After the click I lose the scc over,
On the below code I get the hover on all the elements at ones but I need to get hover per 1 element
-
- <style type="text/css">
- div.tabArea { font-size: 80%; font-weight: bold; z-index:199; position:relative;}
- a.tab { background-color: #f0f0f0; border: 1px solid #000000; border-bottom-width: 0px; padding: 2px 1em 2px 1em; text-decoration: none; color: #808080;}
- /*.activeTab { color: White; }*/
- a.tab:hover { background-color: #d0d0d0; color: #606060; }
- .div_contantRapper{ border: solid 1px black; border-collapse: collapse; border-radius: 5px; -moz-border-radius: 5px; padding: 5px; width: 500px; height: 300px; display: inline-block; background-color: #d0d0d0; }
- .divContent{display:none; height:275px; border:inset 1px gray; margin:5px;padding:5px; background-color:White;}
- </style>
- <div class="tabArea">
- <a id="tab1" class="tab" href="#">Tab A</a>
- <a id="tab2" class="tab">Tab B</a>
- <a id="tab3" class="tab">Tab C</a>
- <a id="tab4" class="tab">Tab D</a>
- </div>
-
- <script type="text/javascript">
- $(".tab").click(function()
- {
- $('a[id*="tab"]').css("color", "#808080").css("background-color", "#f0f0f0")
- // .hover(function()
- // {
- // $('a[id*="tab"]').css("background-color", "#d0d0d0")
- // },
- // function() { $('a[id*="tab"]').css("background-color", "#f0f0f0") }
- // )
- ;
-
- $(this).css("color", "White").css("background-color", "#d0d0d0")