I have a radpanel, and inside there I have a div with some data in it, with the default display set to none.
I have a button, when clicked, I wired up a click event so it then sets the element to visible using toggle.
I set the CSS for the div to have a z-index of: 9999
When I click the icon, the event fires (I added an alert to make sure), yet the div content is not visible.
How can this be when I a setting the z-index to be so high?
<div id="test1" style="display:none">
...
</div>
$("#mybutton").bind("click", function(e){
e.preventDefault();
$("#test1").toggle();
});
UPDATE
The div is visible when the button is clicked if inside a radpane, but when outside a radpanel it isn’t visible.
Try:
$("#test1").toggle();— you need to specify “#” with an ID, otherwise jQuery thinks it is a tag name.