I need to set the asp.net TextBoxs value when loading a page using jQuery.Can someone give me an example?
try it
<script type="text/javascript"> $(document).ready(function() { $("#TextBox1").val("Hello World"); }); </script>
If this is an ASP.NET text editor, try this:
<script type="text/javascript"> $(document).ready(function(){ $('#<%= tb_ASPTextBox.ClientID %>').val("my value"); }); </script>
You can use document.ready
Example http://fiddle.jshell.net/UB5L9/