I want to get all the values contained in some input texts. The Ids of the inputs are something like something_#index#_value assuming that #index# is an integer so the first Id is something_1_value.
This is what I've tried so far :
$("input[id$='_value'] [id*=i]").each(function (j, el) { // Some actions }
Assuming that i is an int, the selector doesn't return any value, and when I delete the [id*=i], I get all the element where the Id finishes with _value.
So how can I get the values of elements that finishes with _value AND containes the integer i in it's Id?
$('input[id$="_value"][id*=' + i + '"]')$('input[id$="_value"][id*="1"]')will match both id1and id11(or12,13, etc.).