Search code examples
javascriptjqueryasp.netlinkbutton

linkbuttons on mouse over becomes bigger and font bolded


How can I make that when i pass the mouse over a ASPNET linkbutton it doesen't turn into a font bold?

enter image description here

a:hover{something here}

does not work


Solution

  • what you can do is to add or remove attribute from the link button like

    $('#linkbutton-id"').mouseover(function() { $('this').attr("font-weight","weight:bold")

    });

    $('#linkbutton-id"').mouseover(function() { $('this').removeAttr("font-weight")

    });

    you can use addClass or removeClass function of Jquery also, they provide you feature to add css class over element for any effect