Hello, I have this great javascript that automatically populates the values of all textboxes on a page with a number, starting at 1 then increasing.
function editTextBoxes() {
var textboxs = $('input:text');
for (i = 0; i <= textboxs.length; i++) {
$('input:text:eq(' + i + ')').val(i + 1);
}
}
However, I only want to fill textboxes who's id contain txtSortOrder
Can someone please help me fix this line: (it's just a guess)
if ($('input:text:eq(' + i + ')').ID.Contains("txtSortOrder")