<html
xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.8.2.js"></script>
<script>
function GetText() {
$('li input:text').each(function (i, el) {
console.log($(this).closest('li').find('input:text').val());
});
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="divText">
<ul>
<li>
<input type="text" />
</li>
<li>
<input type="text" />
</li>
<li>
<input type="text" />
</li>
<li>
<input type="text" />
</li>
<li>
<input type="text" />
</li>
</ul>
<input type="button" value="Click Me" onclick="GetText();"/>
</div>
</form>
</body>
</html>This code snippet for Find and display all text boxes's values using JQuery
