+ 3
Plz check this code my output is right but when it over it button says undefined what is this .plz fix this code
10 odpowiedzi
+ 4
Then add an element to store the text at; a new paragraph for example. <p id="change"></p> or don't use innerHTML at all. alert(a.charAt(0)+x.slice(1));
+ 5
alert does not return your param result
+ 3
Separate your assignment to the button and the alert like this:
document.getElementById("demo").innerHTML = a.charAt(0)+x.slice(1);
alert(document.getElementById("demo").innerHTML);}
+ 3
Set best answer to John Wells, he deserves it.
+ 3
thx bro that right answer
+ 2
can u fix this code.
+ 1
if u don care about alert result .
you can try this
button{text-transform:capitalize;}
every 1st letter in button is capital
+ 1
but with this my button value is changing
- 2
javascript code
https://code.sololearn.com/W0j9v4vg0z6P/?ref=app