Here's the problem:
I want to add a text to an a paragraph element with id "text".
How Can I obtain that from JavaScript, all I get is nothing
Use ajax that will help I feel.
Thank you! I figured out from the internet by the way
the code was:
var addMessage = function() { document.getElementById("text").innerHTML = "thanks for submitting this message!"; };[/code:2xjucj21]
or quicker solution :
$.("#element").html("thanks for submitting this message!");[/code:3ptac5ss]
or quicker solution : $.("#element").html("thanks for submitting this message!");[/code:29lt2a9t]
$.("#element").html("thanks for submitting this message!");[/code:29lt2a9t]
Thanks for the better solution ! but I want to ask, what does the dollar sign means? and thanks in advance
Develop games in your browser. Powerful, performant & highly capable.
go to http:(erase the space)//www.w3schools.com/