Change background color on mouseover and remove it after mouseout
问题 I have table which class is forum . My jquery code: <script type="text/javascript"> $(document).ready(function() { $('.forum').bind("mouseover", function(){ var color = $(this).css("background-color"); $(this).css("background", "#380606"); $(this).bind("mouseout", function(){ $(this).css("background", color); }) }) }) </script> It perfectly works, but is it possible to do it in more efficient way without var color = $(this).css("background-color"); . Just after mouseout leave the previous