How to grab input arrays with unknown index by name?
Hi,
i have many inputs like:
-
<input type="hidden" name="combi[<?php echo $sysCompData['combi_id'];?>][desc_features]" value="<?php echo $sysCompData['desc_features'];?>">
I do not know the value of both PHP-Values, they come from a database.
I have tried now some hours to grab the values of this array, because i have to compare them to other values in similar inputs. But I simply do not know how?
For a simple test i simply want to change the value of the chosen fields. I tried (nearly) everything from something like $("input[name='combi']").val('test'); to $("input[name='combi'//[//]//[//]]").val('test'); .
In PHP I have absolutely no problem, i go simply through the arrays with:
- <?php foreach ($combi as $i => $combiData): ?>
How can I manage this with jquery?
I hope s.o. has an idea. Thanx in advance!
Bye, Mojo