Jump to content

mudar texto javascript


Recommended Posts

Se fizeres isso q tens aí é adicionado esse texto ao documento.

O q tu queres é substituir.

Experimenta assim:

<span id="idQualquer">Texto</span>

e no onclick do botão:

document.getElementById('idQualquer').innerHtml = 'NovoTexto'

Não testei, mas a solução deve ser qq coisa do género.

Matraquilhos para Android.

Gratuito na Play Store.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.