0
Quick little question I couldn’t find anywhere..
How can I change the text of a small?
I’m trying with the same code I used to swap a text once, I think the problem is in the selectors, but I have tested with all of them and did not roll. I do not have access to HTML and the version of Jq is 1.12.4 JQ:
$(window).on('load', function(){
$('td[name=Boleto]')
.find('small')
.text('Transferência');
});
html:
<label class="card Billet">
<input type="radio" value="Billet" class="rdoCreditCards" name="CreditCardProvider" id="CreditCardProvider" displayname="Boleto">
<span>
<small>Boleto</small>
</span>
</label>
Got confused this
td[name=Boleto]
as it does not even have the element<td>
in your code.– Woss
You are selecting an element that does not exist in your question
td
– Jorge.M
@Andersoncarloswoss, exact...
– Jorge.M
I traveled.. I will correct.. haha
– Gabriel Salomão
The rest is right then?
– Gabriel Salomão
If you have a tag
small
within atd
with the nameBoleto
, would look like this:$(window).on('load', function(){
 $('td[name="Boleto"]')
 .find('small')
 .text('Transferência');
});
– Jorge.M
It’s not a td, it’s a label inside a div
– Gabriel Salomão