Have the following code:
var i = 1;
while (i<22){
$('[id^="trloc"]').show();
i++;
}
I need to add the value of i to the id - something like this:
$('[id^="trloc" + i]').show();
But I cannot seem to get it to work - any suggestions?