logo
Search
showing results for - "change button color jquery"
Giorgio
24 Aug 2017
1// css
2.ButtonClicked {
3    background-color:red;
4}
5
6// html
7<button id="ButtonId">PRESS ME</button>
8
9// jquery
10$("#ButtondID").click(
11  function(){
12  	$(this).addClass('ButtonClicked');
13  }
14);
similar questions
javascript change color of buttonjquery change button click functionjquery replace text in buttonchanhe button yext jquerychange background colour jqueryadd active class to button onclick jquerychange background color on button click in javascriptblink a button jquery onclick
queries leading to this page
on click change color jqueryon click button jquery change background colorchange current button color jqueryjquery change class property button colorassign css color on button press jquery htmljquery change color on clickclass color button jquery jquery change color and text buttonchange button color jquery
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue