Finding and HTML Element

G

Guest

I have a message which is surrounded by a <P> and the Visibility is set to
"Hidden".
I have some Javascript which validates information which is keyed on the
screen and sets the Visibility to "visible" when an error is found.

I have the same edit on the server (MS says that I should perform the edits
in both places). I have set the "ID" attibute on the <P ID="Fred"
style="Visibility: hidden;">. So What does the command look like which find
the ID="Fred" and then changes "hidden" to "visible"?

I think I could use the "runat" server and use the ID name, but I'm still
not sure what the commands look like to change the visibility property.

I am not sure which is a more desirable approach...

Anyway, if you could shine the light on this one...I would greatlt
appreciate it...
 
S

Scott M.

<P ID="Fred" style="visibility: hidden" runat="server">

Then your server code is easy:

Fred.visible = true
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top