Bascially I want to know the best way to hide/show an ASP.NET control from a Javascript function. I figured I would just access the control in Javascript using:
<
You want to set the display style property to 'none' (to hide) or null to show.
null
var theControl = document.getElementById("txtEditBox"); theControl.style.display = 'none'; theControl.style.display = null;
Doing it the jQuery way:
$('#txtEditBox').hide(); $('#txtEditBox').show();