Change text label

0

The JQuery below is not changing html of label :

<script src="_global/_js/jquery-2.1.4.min.js"></script>

<label id="precoSedex">0.00</label>
   <input type="radio" name="pgtoTipo" value="40010" required />SEDEX

<label id="precoPac">0.00</label>
   <input type="radio" name="pgtoTipo" value="41106" />PAC

<script>
 $("#precoPac").html = 41.51;
 $("#precoSedex").html = 48.71;
</script>

Why?

Note: The JQuery library is being successfully included on the first line and with no error in the console.

    
asked by anonymous 30.05.2016 / 18:15

1 answer

2

Try this:

 <script>
 $("#precoPac").html(41.51);
 $("#precoSedex").html(48.71);
</script>
    
30.05.2016 / 18:19