Skip to content

Instantly share code, notes, and snippets.

@ng
Forked from anonymous/gist:179278
Created September 1, 2009 18:24
Show Gist options
  • Save ng/179279 to your computer and use it in GitHub Desktop.
Save ng/179279 to your computer and use it in GitHub Desktop.
<!-- add jquery to your project -->
<!-- add this to the head -->
<script type="text/javascript" src="/PATH/TO/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("chbx_notifyRecipientByEmail").click(function () {
$("pnl_RecipientEmailAndMessage").slideToggle("slow");
});
});
</script>
<asp:CheckBox runat="server" ID="chbx_notifyRecipientByEmail" Text="&nbsp;Please also notify the gift recipient by email, which may include a personal message." OnCheckedChanged="onChecked_chbx_notifyRecipientByEmail" AutoPostBack="True" />
<!-- hide this with style="display: none" or hide it in the CSS stylesheet -->
<asp:Panel ID="pnl_RecipientEmailAndMessage" runat="server" Visible="false">
<br />
<asp:Label ID="lbl_recipientEmail" runat="server">Recipient's Email:</asp:Label><br />
<asp:TextBox ID="tb_recipientEmail" runat="server" maxlength="70" Width="200px" />
<br /><br />
<asp:Label ID="lbl_personalMessage" runat="server">Add a personal message for your gift recipient:</asp:Label><br />
<asp:TextBox ID="tb_personalMessage" runat="server" maxlength="500" TextMode="MultiLine" Height="50px" Width="200px"/>
</asp:Panel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment