document.getElementById("div_id_naMr").innerHTML="hello"; will display the hello text in the web browser . i just want to diplay the hello in the web browser in the red color . How to color up the text with ajax i want to keep the color in the javascript file
Hi, You can check this Code: var elem = document.getElementById("div_id_naMr"); elem.innerHTML = "hello"; elem.style.color = "Red"; Thanks