Result of Calculation to ASP EditItemTemplate Control TextBox

Result of Calculation to ASP EditItemTemplate Control TextBox

I was having trouble with Javascript, in IE11, Windows 8.1  accessing textbox controls in the EditItemTemplate of an asp webform.

A suggestion was made to try the following code.
While I am able to access and view (via "Alert") the contents of text boxes, I now need to populate another Text box in the EditItemTemplate with the result of the calculation.

Thank you for your assistance.


<script src="//code.jquery.com/jquery-1.9.1.js"></script>


<script>

function GetEditTextBox() {

var Count1 = $(".CountTxt").val();

var Count2 = $(".InternalCountTxt").val();

var Count3 = Count1 * Count2


$(".ContainerTotal").val() = Count3 <-- I tried this... It didn't work.

}

This is the Control:

<asp:textbox id="Item_ContainerTotalPieces" CssClass="ContainerTotal" runat="server" Font-Names="Arial" MaxLength="10" Width="80"></asp:textbox>


</script>