function DisplayValidator() {
var ddl = document.getElementById('ddlRejectedBy').value;
//alert(ddl);
var lbl = document.getElementById('lblValidator');
//alert(lbl);
if (ddl == "0")
lbl.style.display = "";
else
lbl.style.display = "none";
return;
}
//button call to function
<asp:Button ID="btnOkTest" runat="server" BackColor="#46A3FF" Font-Bold="True" Font-Size="Medium" ForeColor="GrayText" Height="30px" OnClientClick="return DisplayValidator();" OnClick="btnOkTest_Click" Text="Ok" Width="100px" Enabled="false" />
you may also post your existing codes so we can further provide the advice.