Click here to Skip to main content
16,019,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to find dynamic textbox id in javascript based on how to calculate sum.

JavaScript
string ifb = Convert.ToString(arrLIst[0]);
string ifd = Convert.ToString(arrLIst[2]);
string ain = Convert.ToString(arrLIst[4]);

int sum = 0;

TextBox totincom = (TextBox)Page.Form.FindControl(("txt5"));
totincom.Text = Convert.ToString(sum);
Posted
Updated 26-Jul-12 1:00am
v2

Try to find with
C#
document.getElementById('<%=txt5.ClientId%>');
 
Share this answer
 
Comments
StianSandberg 26-Jul-12 8:23am    
5'd. correct answer :)
Try this Jquery Example
var textBoxArray = $('input[type=text]');
 
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