I tried like this
<script type="text/javascript">
$(document).ready(function () {
$('#divID').hide();
$('#txtInsertComments').Onfocus(function () {
$('#divID').show(); });
});
</script>
//Asp.net Design
<asp:TextBox ID="txtInsertComments" runat="server" Text="Demo"></asp:TextBox>
<div runat="server" id="divID">
This is Div
</div>
but still not working… please help me out …
If you are using this with
Master Pagethen the ID of yourTextboxwill change.So use this.If you are not using
Master Pagethen this should work