Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginner question

Status
Not open for further replies.

EKC

Technical User
Jan 13, 2001
43
0
0
CA
Hi,
I have a form with a few input boxes.I want to be sure that required text boxes are filled before submiting form so I have a client side validating in place.When user try to submit form without filling required box,I also want image of arrow to show and point to blank box.
I tried few things -changing picture property of image but it's not working. I guess it should set image to visible.Is this possible,
Any idea appreciated,
Lyn
 
Lyn,

I'm new at this too, but here's a thought.

Using Javascript, you could place an image after each field set to nothing. Then, in you're validation code, change the image src for image tag to an arrow.

Hope this helps some.

Eric
 
I know how you could do this in javascript. hide the pic until a event is done like this.

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
function showMe() {
document.all.MyList.style.display = &quot;&quot;;
}
</SCRIPT>
<BODY onclick=&quot;showMe()&quot;>
<UL ID=MyList STYLE=&quot;display:none&quot;>
<LI><img src=&quot;pic1.gif&quot;>
<LI><img src=&quot;pic2.gif&quot;>
<LI>Show and hide pic's
</UL>
</BODY>

give me a minute and I'll try to convert to Vbscript provide tools to let people become their best.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top