Here is the code snippet for a link tab:
HTML
<div class="sortLinks right">
<label>Sort by</label>
<a onclick="javascript:SortOrder('DATE')" href="#">Date Modified</a>
<span class="sort_sep"> </span>
<a onclick="javascript:SortOrder('ALPHA')" href="#">Alphabetical</a>
</div>
CSS
a:focus
{
color:Blue;
}
JQuery
function SortOrder(order) {
$.ajax({
type: "POST",
cache: false,
url: "@Url.Action("SecondarySkillDetails", "SkillLifeCycle")",
data: { primarySkillID: $("#ddlPrimarySkills").val(), sortorder: order },
success: function (data) {
$("#content").html(data);
},
error: function (xhr, textStatus, error) {
alert (error);
}
});
}
I am looking to change the color of the active link to blue, however, it returns to black once clicked outside. How can I prevent this from happening?