$('<%=txtSStreet.ClientID %>').val("Street"); $('<%=txtSState.ClientID %>').val("City"); $('<%=txtSDistrict.ClientID %>').val("State"); // $('<%=ddlSCountry.ClientID %>').attr("value","Country"); $('<%=txtSZipcode.ClientID %>').val("ZIPCode"); $('<%=txtSPostalAddress.ClientID %>').val("PostalAddress");
$(document).ready(function() { $('#<%=txtSStreet.ClientID %>').val("Street"); $('#<%=txtSState.ClientID %>').val("City"); $('#<%=txtSDistrict.ClientID %>').val("State"); // $('#<%=ddlSCountry.ClientID %>').attr("value","Country"); $('#<%=txtSZipcode.ClientID %>').val("ZIPCode"); $('#<%=txtSPostalAddress.ClientID %>').val("PostalAddress"); });
$('<%=txtSStreet.ClientID %>').val("Street");
$('#' +'<%=txtSStreet.ClientID %>').val("Street");
$(‘:submit’).click(function () { $(‘div’).text(‘This is new text.’) ;
$('#ControlName').val('value');
<head runat="server"> <title></title> <script src="scripts/jquery.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> $(document).ready(function() { $('#btn1').click(function() { $('#Abc').val('Clicked') return false; }); $('#btn2').click(function() { $('#Abc').val('Hit') return false; }); }); </script> </head> <body> <form id="form1" runat="server"> <div> <input name="Abc" id="Abc" runat="server" /> <input type="button" runat="server" value="click" id="btn1" /> <asp:Button ID="btn2" runat="server" Text="Hit" /> </div> </form> </body>
$(document).ready
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)