views:

141

answers:

2

I want to add panel control using javascript inside the TD element.

Is it possible to create these control using Document.createElement and appendChild

methods?

I also want to show and hide this panel control onmouseover and onmouseout event.

+1  A: 

You can use a div element for panel.

You can use anchor element for linklabel.

Actually asp.net panel is rendered as div and linkbutton rendered as anchor.

You can use the display property to show and hide panel.

set display to none hides the div

set display to block or inline shows the div.

rahul
i try with div element but after make it hidden,a space is still present there. Is there any way to remove empty space?
A: 

Maybe a bit off-track, but I would recommend having a look at JQuery which makes javascript'ing more intuitive