How to change the text from Submit” on input tag with JavaScript?

Spread the love

Sometimes, we want to change the text from Submit" on input tag with JavaScript.

In this article, we’ll look at how to change the text from Submit" on input tag with JavaScript.

How to change the text from Submit" on input tag with JavaScript?

To change the text from Submit" on input tag with JavaScript, we set the value attribute.

For instance, we write

<input type="submit" class="like" value="Like" />

to set the value attribute to the submit button’s text.

Conclusion

To change the text from Submit" on input tag with JavaScript, we set the value attribute.

Leave a Reply

Your email address will not be published. Required fields are marked *