How to hide a div?

  • Thread starter Miguel Dias Moura
  • Start date
M

Miguel Dias Moura

Hi,

I have a div on a page which i need to hide or show when clicking a link
or an image button.

How can I do this?

Thanks,
Miguel
 
S

Shiva

To do this on the client: assign an id for the div (using id attribute) and
on click of the link/image, have id.style.display = 'none'; // 'inline' to
show
OR
On the server side: have runat=server and an id for the <div> tag. In the
appropriate control's server-side click event, have <div tag id>.Visible =
false (or true)

Hi,

I have a div on a page which i need to hide or show when clicking a link
or an image button.

How can I do this?

Thanks,
Miguel
 

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

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top