how do you validate a form soo there is no alerts all i need is image and words to display next to the text box when something incorrect has been typed in
lunie15 0
Newbie Poster
Recommended Answers
Jump to PostCreate a div to next to the text box or any field where you want to display something like.
<div id ="err1" style = "display:none">error message</div>
In validation function
function val() { if(error_condition) { document.getElementById('err1').style.display = "block"; } }
Jump to PostCreate a div to next to the text box or any field where you want to display something like.
<div id ="err1" style = "display:none">error message</div>
In validation function
function val() { if(error_condition) { document.getElementById('err1').style.display = "block"; } }
Thet's fine as far as it goes but …
All 5 Replies
mahavir123 1
Junior Poster in Training
Airshow 416
WiFi Lounge Lizard Team Colleague
praba11 0
Newbie Poster
Airshow 416
WiFi Lounge Lizard Team Colleague
Bachu 45
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.