jquery onlcick css change
$('.colors-list li').click(function(e){
$('.results').css('background-color', 'red');
});
jquery onlcick css change
$('.colors-list li').click(function(e){
$('.results').css('background-color', 'red');
});
HTML button onclick
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<p>There is a hidden message for you. Click to see it.</p>
<button onclick="myFunction()">Click me!</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "Hello Dear Visitor!</br> We are happy that you've chosen our website to learn programming languages. We're sure you'll become one of the best programmers in your country. Good luck to you!";
}
</script>
</body>
</html>
js onclick change css
<div id="foo">hello world!</div>
<img src="zoom.png" id="image" />
<script>
$('#image').click(function() {
$('#foo').css({
'background-color': 'red',
'color': 'white',
'font-size': '44px'
});
});
</script>
javascript onclick
document.getElementById("Save").onclick = function ()
{
alert("hello");
//validation code to see State field is mandatory.
}
css onclick change color
<style>
.dabutton:focus {
background-color:yellow;
}
</style>
<button class="dabutton"></button> // <-- usage
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us