2
Good morning!
I don’t have access to the HTML of a site I’m editing, so to make additions, I only get it via css or js. Basically I need to change a text from "service", to "Transfer" and to try with jquery in "Javascript no header", which has in WP.
I’m quite an amateur at JS so I can’t tell you where the mistake is. I’m trying to use Firebug to find problems, but at first the code doesn’t even appear in it.
It follows code as it is now
$(document).ready(function(){
$('service').text('Transfer');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<label class="service">
<input type="checkbox" checked="checked" value="Service" id="package-service-toggle">
<span></span>
<p>Serviço</p>
</label>
But you can see the source code and could post the snippet you want to change in the question.
– Sam
basically won’t work, because you made a selector to search for an element of the tag "service", as if it were "table", "body" or "p", I don’t think that’s the case. If service is an id or class, you need to review the selector. Put the html so we can help
– Ricardo Pontual
Follow HTML <label class="service"><input type="checkbox" checked="checked" value="Service" id="package-service-toggle"><span></span><p>Service</p></label> The ID I have to choose would then be "package-service-togglw"?
– Gabriel Salomão
Add the code to the question, just click on edit
– Sam