How to modify STYLE attribute of element with known ID using JQuery

后端 未结 3 1458
终归单人心
终归单人心 2020-12-14 07:15

I got 3 buttons-links triggering some javascript code, with indication if certain button is selected, selected button got style attribute set to

\"btn brown selecte

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 08:04

    $("span").mouseover(function () {
    $(this).css({"background-color":"green","font-size":"20px","color":"red"});
    });
    
    
    Sachin Tendulkar has been the most complete batsman of his time, the most prolific runmaker of all time, and arguably the biggest cricket icon the game has ever known. His batting is based on the purest principles: perfect balance, economy of movement, precision in stroke-making.

提交回复
热议问题