Team:Freiburg/Project/toolkit

From 2013.igem.org

(Difference between revisions)
Line 10: Line 10:
############################################################################## -->
############################################################################## -->
-
<script>
+
<script language="javascript" type="text/javascript">
-
$('#box').change(function() {
+
        function forRentClicked(sender)
-
    $('#div').toggle(this.checked);
+
        {
-
});
+
            var tb1 = document.getElementById('<%= TextBox1.ClientID %>');
-
</script>
+
            tb1.style.display = sender.checked?'inline':'none';
 +
        }
 +
        </script>
Line 73: Line 75:
<div id="main_contant" style="height:500px;">
<div id="main_contant" style="height:500px;">
-
<input type="checkbox" vlalue="show-hide" checked="checked" id="box">
+
<asp:CheckBox ID="CheckBox1" runat="server" onClick="forRentClicked(this)" Checked="true" />
-
<div id="div">123</div>
+
        <asp:Label ID="Label1" runat="server" Text="Rental rate per week:"></asp:Label>
-
 
+
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>
</div>
</body>
</body>
</html>
</html>

Revision as of 22:05, 17 September 2013