Having trouble with setting the background color of an input field to red in this code:
$(document).ready(function(){
$(".abc").focus(function(){
$(this).attr('background', 'red');
$("label").text('Insert text here').fadeOut(2000);
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<label for="male">Last name:</label>
<input class="abc" type="text" name="LastName" value=""><br>