$("#loginDialog").html(newdata); //id $(".loginDialog").html(newdata); //class or document.getElementById('boxid').innerHTML='Hi';