Тэги:
#webforms #events #onclick #JavaScriptКомментарии:
hi, I did exactly like yours for doOnClick, but I can't make it work.
Ответитьi cant make the function executed when i put it in elementor html element/box
ОтветитьHow to change the color for example 1st click blue 2nd green 3rd red like that
Ответитьhow to again change it from "ok tested" to "test"
ОтветитьI am using multiple test buttons of same id. so when i click any of them only the first one is changing.kindly give me a solution.
ОтветитьIncrease the font size
Ответитьhow to change the button color
Ответитьhow can i make where i press the text box and it changes the border color
ОтветитьFinally an answer that was somewhat clear for "We Beginners"!
I was able to adapt this information to a function that toggles the color as I open and close a sub page.
<head>
<script type="text/javascript">
function Coalition(openB,closeB)
{
var c = document.getElementById(openB);
var d = document.getElementById(closeB);
if(c.value == 'Open Coalition Pages'){c.value = 'Close Coalition Pages'; c.style.color = 'red'; d.style.display = 'block';}
else{c.value = 'Open Coalition Pages'; c.style.color = 'black'; d.style.display = 'none';}
}
</script>
</head>
Was useful.
Thanks very much!