There are approaches you can use with Jquery Selectors. One of alternative is to use css selector. When you create dynamic controls; assign unique value to CssClass property of the control and use it at the jQuery side to access the controls. Below is some what very small example:
Created some sample controls in Page_Init event:
protected void Page_Init(object sender, EventArgs e)
{
TextBox txtBox = new TextBox();
txtBox.CssClass = "txtBox";
phControls.Controls.Add(txtBox);
CheckBox chktBox = new CheckBox();
chktBox.CssClass = "chktBox";
phControls.Controls.Add(chktBox);
DropDownList drpBox = new DropDownList();
drpBox.CssClass = "drpBox";
phControls.Controls.Add(drpBox);
}
And on design side, placed a button control. A function is alerting the controls on OnClientClick event as:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript">
function getValues() {
alert($(".txtBox"));
alert($(".chktBox"));
alert($(".drpBox"));
alert($(".txtBox").val());
return false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:PlaceHolder runat="server" ID="phControls" />
<asp:Button Text="Get Value" runat="server" OnClientClick="return getValues();" />
</form>
</body>
</html>
hope it helps./.