0
<button class="btn btn-big btn-primary" id="geolocateMe" type="submit">Goooo!</button>

Please how in JS I can change the Goooo! value into a button ?

I've tried:

document.getElementById('geolocateMe').value = "Test";

Thanks.

2 Answers 2

1

Your goal is to change the text of the button?

document.getElementById('geolocateMe').innerText = "Test";
Sign up to request clarification or add additional context in comments.

1 Comment

Glad it worked out :) The reason your jsfiddle didn't work had to do with the order it loads the different panels: jsfiddle.net/hZQ2H/4
0

try:

document.getElementById('geolocateMe').innerHTML = "Test";

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.