ASP.NET - How to get value of textbox at cleintside in asp.net?

Asked By sanket patil on 21-Mar-13 02:08 AM
hi, friends, i m not getting value of textbox at cleintside when i put <scriptmanager> tag inside <form> tag in IE 9 browser. i have done following code.








<script language="javascript" type="text/javascript">

$(document).ready(function () {



document.getElementById('<%=txtPickDate.ClientID%>').value = 'sanket';


 

alert(document.getElementById('<%=txtPickDate.ClientID%>').value);


</script>


<body class="bdy_home">


<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<div style="margin-left: 42px; margin-bottom: -20px">

<label>Pickup Date</label>

</div>

<div style="margin-bottom: 30px">

<div class="ui-widget">

</div>

<asp:TextBox ID="txtPickupdate_local" runat="server" CssClass="txtPickDate" onkeydown="return isNumberKey(event,this)"

TabIndex="8" onchange="CheckTime();"></asp:TextBox>

</div>

<div>
</form>
</body>

When i run above code, i m getting following error.
Unable to set value of the property 'value': object is null or undefined

but it's working in all browser except ie9 browser. plz, helped me out.