Jump to content


Photo

como mudar a cor de um botão html usando javascript

Js Javascript botão cor

  • Faça o login para participar
7 replies to this topic

#1 shogun89

shogun89

    Normal

  • Usuários
  • 91 posts
  • Sexo:Masculino
  • Localidade:marilia

Posted 10/06/2015, 03:45

Tenho esse botão em html usando css do bootstrap:

 <button type="button" class="btn btn-lg btn-success btn_font_size" onclick="mudaCor();">Inicio</button>

 não sei como fazer uma função javascript que mude a cor btn-success para por exemplo btn-warning ao ser clicado, alguém tem alguma solução em javascript?



#2 Danilomaru

Danilomaru

    Ativo

  • Moderadores
  • 300 posts
  • Sexo:Masculino
  • Localidade:brasil

Posted 11/06/2015, 20:53

<button type="button" id="teste" class="btn btn-lg btn-success btn_font_size" onclick="mudaCor();">Inicio</button>

 

#Função JavaScrit

 

function mudaCor(){

 $("#teste").addClass("btn btn-lg btn-warning btn_font_size");

}



#3 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 20/09/2022, 00:12

The authors conclude that doses of 10 12. doxycycline for kennel cough

#4 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 05/11/2022, 15:38

Impotent at 29 years old because of steroid abuse is not what anyone wants, so he started a four week course of HCG cialis on line Dosanjh, Peter Ro, Keyianoosh Z

#5 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 11/11/2022, 13:59

The HER2 status of a cancer is determined by a test that measures either the level of HER2 protein in cancer cells or the number of HER2 genes in cancer cells stromectol near me

#6 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 15/12/2022, 02:07

cialis online without Work hard at everything you do

#7 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 20/12/2022, 18:20

However, more events were life threatening or required hospitalization in the tamoxifen group than in the anastrozole group 33 of 150 events v 28 of 203 events, P how to take nolvadex for pct Healthcare professionals should take an active approach to educate patients with DM

#8 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 26/01/2023, 10:15

online generic cialis Cigarette smoking and stroke in a cohort of U





Veja alguns posts relacionados com: Js, Javascript, botão, cor

1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq