Here is the code snippet:
<form id="my-button" action="#" method="post">
<input type="submit" name="sample-button" value="Hello">
</form>
I am looking to dynamically change the text using CSS, without any user interaction such as clicking or hovering.
I attempted the following approach, but it did not yield the desired result.
#my-button input[type=submit]:before{
content:"";
}
#my-button input[type=submit]:after{
content:"HI";
}