Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai im using Grid view EditItemTemplate in text box
XML
<asp:TextBox ID="Quantity" runat="server" Text='<%#Eval("Quantity") %>' class="PriceCopy"
                                        onblur="sumamt()" />

In the text box value i need to copy Same gridview in ItemTemplate (Label)
<asp:Label ID="lblQuantity" Text='<%#bind("Quantity") %>' runat="server" class="CopyQunt">

Please help me How Can i copy the value in jquary
Below is my code Please help me
C#
$(".PriceCopy").live("keyup", function (e) {
           debugger;
           var qun = $(this).val();
           var qunt = $("#lblQuantity").val(qun);
           alert(qunt);

       });
Posted
Updated 5-Sep-13 3:32am
v2

1 solution

This is similar to the problem defined in the url: http://www.codeproject.com/Answers/642658/javascript-multiplication-in-Gridview-column#answer1 have a look on it.and one more thing chnge the selecor for label "lblQuantity" it should be
$('#<%=lblQuantity.ClientID%>').val(qun)
or
var qunt= $("[id$=lblQuantity]").val(qun)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900