1
I’ve done some research and I don’t know if this is possible.
In case what I am wanting to do is the following: With jQuery I would like to change the link name, like this:
It’s like this:
<a href="checkout-review" class="btn btn-primary" style="width:100%;">Escolha uma opção de Frete</a>
And after an event of onChange()
go to:
<a href="checkout-review" class="btn btn-primary" style="width:100%;">Finalizar Pedido</a>
Notice that what I need to change is
<a>AQUI</a>
How could I do this? Thanks in advance
@Leandrade did not solve my problem, I had seen this question before.
– LeoZera
Maybe this link will help you https://www.w3schools.com/jquery/html_html.asp
– Sumback
Strange, because the answer is there, just do
$("a").attr("href", "http://www.outra.coisa/")
;– LeAndrade
@Leandrade in case the above example is changing href. And I need to change only the text. As answered below! But thank you for your attention. Thank you
– LeoZera
Ta blaza, I got it wrong!
– LeAndrade