Here is the Fiddle
Cant get this to work! I am hacking Jquery.tabs() functionality. Want the tab text to turn bold when selected. Not sure what I am doing wrong?
<div>
<ul id="tablist">
<li id ="li" aria-selected="true" >
<a id="ui-id-1" href="#tabs-Hobby">Hobby</a>
</li>
<li id="lw" aria-selected="false">
<a id="ui-id-2" href="#tabs-News">News</a>
</li>
</ul>
</div>
JQuery:
$(" ul li a").click(function()
{
if($("ul").find("li[aria-selected=true]")) {
$("ul").find("li[aria-selected=true]").attr("style", "font-weight:bold")
}
if($("ul").find("li[aria-selected=false]")) {
$("ul").find("li[aria-selected=true]").attr("style", "font-weight:normal")
}
});