2
Guys took the following function in Javascript (jQuery):
function CustomAlert() {
this.show = function (nome) {
};
}
var Alert = new CustomAlert();
$(document).ready(function () {
Alert.show('meu nome e hugo');
});
How do I get it back, write the screen the following HTML:
<div class="nome">meu nome e hugo</div>
Your question is unclear... you want to create a name function
Alert
(with the first large letter) and make it write in HTML? You can explain better what you want to do, how you call the function and the HTML you have?– Sergio
@Sergio Ok, I’m sorry. I edited my question, give a look now please.
– Hugo Borges
Tries:
document.getElementsByClassName("nome")[0].innerHTML = 'Meu Nome é Hugo';
– Marconi