Hi, who helps me?
I have to change a text in a text field and so far everything works with the statement
$w(‘#TextCode’).text = “NewTextNewTextNewTextNewText”;
Now I would like to be able to give this new style, example h1 and bold. I would also like to be able to go to some point in the fraase but I do not know how to do it.
I tried to write this code but just looking at it I do not like it and I do not know how to do it
$w.onReady(function () {
if(wixUsers.currentUser.loggedIn) {
$w('#TextCode').text = <b><h1> NewTextNewTextNewTextNewText </br> NewTextNewTextNewTextNewText </h1></b>;
$w("#imputcode").hide();
$w("#buttonlogcode").hide();
}
else {
console.log(‘Utente LogOut’);
}
});
Who helps me please, Thanks