Hi,
I'm new to Java and I'm trying to trigger a Java function from an onchanged event for a checkbox. When the checkbox is clicked, it should trigger the Java function to make an imagebutton on the form visible.
Here is my Java code:
<script type="text/javascript" language="javascript">
function Show()
{
// var SelectedValue = document.getElementById('<%=ImageButton5.ClientID%>').value;
{
document.getElementById('<%=ImageButton5.ClientID%>').style.display = 'block';
}
</script>
here is the html code for the checkbox:
<asp:CheckBox
ID="CheckBox1" runat="server" AutoPostBack="True" CausesValidation="True" onchanged="Show()"
Visible="False" />
I do not get a runtme error, but the button isn't visible. Any help would be greatly appreciated!
Thanks,
kg
I'm new to Java and I'm trying to trigger a Java function from an onchanged event for a checkbox. When the checkbox is clicked, it should trigger the Java function to make an imagebutton on the form visible.
Here is my Java code:
<script type="text/javascript" language="javascript">
function Show()
{
// var SelectedValue = document.getElementById('<%=ImageButton5.ClientID%>').value;
{
document.getElementById('<%=ImageButton5.ClientID%>').style.display = 'block';
}
</script>
here is the html code for the checkbox:
<asp:CheckBox
ID="CheckBox1" runat="server" AutoPostBack="True" CausesValidation="True" onchanged="Show()"
Visible="False" />
I do not get a runtme error, but the button isn't visible. Any help would be greatly appreciated!
Thanks,
kg