I have to iterate through all the ids starting with "initial\_" with a different iterator.

what i tried at the moment is:

```
counter = 5
$("[id^=initial_]").each(function () {
    while (counter > 0) {
        counter--;
        do some stuff here with the current id and manipulate counter
    }
    go to next id
}

```

any idas on how to do it?
thank you for the help