Set the background color red of the submit button using jQuery
<!DOCTYPE
html>
<html>
<head>
<title></title>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs="
crossorigin="anonymous"></script>
</head>
<body>
<input
type="submit" name=""><br><br>
<label></label>
<script
type="text/javascript">
$("input").click(function(){
$("input").css("background","red");
})
</script>
</body>
</html>
Post a Comment
If you have any doubts, Please let me know
Thanks!