I attempted running the following code snippet
var buttonElement = $('<button>Button</button>');
$('body').append(buttonElement);
buttonElement.hover().css('background-color', 'red');
Unfortunately, the code snippet did not produce the desired result.