Reply
Problem displaying inline DIV with JS errormsg
Old 10-09-2009, 11:04 AM Problem displaying inline DIV with JS errormsg
Junior Talker

Posts: 1
Trades: 0
Hi,

I have created js validation on a html form. I want the error message to appear on the screen using div inline. This works fine but will only stay on the screen for a second.

how can i get the error message to stay on the screen when an erro ocurrs. it should be removed when the user hits the submit button again.

any help would be much apprieciated. here is some of my html and js.

Thanks.

<
divclass="ErrorMsg" id="errorID">Member ID must be filled in and greater than 6 characters.</div>

if
(ID.value.length <=6)


{

document
.getElementById("errorID").style.display="inline";

document
.getElementById("MemID").select();

document
.getElementById("MemID").focus();

returnfalse;
firewood is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-09-2009, 11:22 AM Re: Problem displaying inline DIV with JS errormsg
chrishirst's Avatar
Super Moderator

Posts: 22,225
Location: Blackpool. UK
Trades: 0
And the rest of the code is??
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Problem displaying inline DIV with JS errormsg
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11549 seconds with 13 queries