if (response.ok) {
console.log("login successful");
} else {
console.log('Username Password is incorrect');//i want to show this console on h1 tag in class componenet
window.alert("Username and Password is incorrect");
}
}
if (response.ok) {
console.log("login successful");
} else {
console.log('Username Password is incorrect');//i want to show this console on h1 tag in class componenet
window.alert("Username and Password is incorrect");
}
}
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jun 28, 2021, 10:08 AM EDT