Ich brauche tabindex für erforderlichen Elemente in einer Tabelle zu erzeugen, wie die Zeilen von foreach Schleife mit drei Elementen in einer Zeile erzeugen ...erzeugen tabindex dynamisch für Tabellenzeile Eingabeelemente
<table id="cart-table" class="form-group mb0 center-al check-number" role="grid">
<c:forEach items="${xyz.abc}" var="entry" varStatus="status">
<tr class="entry-row">
<td class="col-product-reason">
<select id="select${entry.index}" class="form-control" >
<option value="${entry.displayCode}">
${entry.displayValue}
</option>
</select>
</td>
<td class="col-product-quantity">
<span><input type="text" id="quantity1-${entry.index}" class="small-input form-control"/></span>
<span><input type="text" id="quantity2-${entry.index}" class="small-input form-control"/></span>
</td>
</tr>
</c:forEach>
</table>
Dieses Codefragment ist mein , ich habe mich versucht tabindex auf folgende Weise
<tr><td><select tabindex="0">//options</select></td><td><input type="text" tabindex="1"/><input type="text" tabindex="2"/></td></tr>
<tr><td><select tabindex="3">//options</select></td><td><input type="text" tabindex="4"/><input type="text" tabindex="5"/></td></tr>
<tr><td><select tabindex="6">//options</select></td><td><input type="text" tabindex="7"/><input type="text" tabindex="8"/></td></tr>
aber ich konnte nicht kommen mit einer Logik zu erzeugen, diese zu lösen .. Bitte geben Sie mir mit irgendwelchen Ideen
Haben Sie dieses Problem gelöst? –