leoretorico Posted March 15, 2014 Report Share Posted March 15, 2014 Sou novo em Html e Javascript ,portanto tenho uma dúvida: Como posso preencher um paragrafo com conteúdo de um arquivo de texto? Link to comment Share on other sites More sharing options...
cribeiro Posted March 16, 2014 Report Share Posted March 16, 2014 Podes tentar ser mais específico no que pretendes? Eventualmente um exemplo? Link to comment Share on other sites More sharing options...
Devexz Posted March 16, 2014 Report Share Posted March 16, 2014 podes fazer com jquery isso facilmente: $( document ).ready(function() { $("#carrega").click(function() { $("#conteudo").load("ficheiro.txt"); }); }); <p id = "conteudo"></p> <button id = "carrega">Carrega-me</button> Contador de calorias: caloriaspordia.com Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now