Ich habe ein Formular mit Eingabefeld, wo readonly wahr ist.So entfernen Sie Readonly Requisite von allen obigen Elementen auf Buttonclick
ich auch eine Bearbeitungsschaltfläche haben, ich will es machen, so dass, wenn die Schaltfläche Bearbeiten für diese Zeile alle Eingabefelder angeklickt wird, wird nur lesbar falsch haben, , aber ich weiß nicht, wie man Ziel alle TD> Eingabe innerhalb dieser TR.
Danke.
Der Code.
<tr>
<td>
<img src="http://placehold.it/150x150" alt="">
</td>
<td>
<input name="textinput" placeholder="" value="Olympus E-M1 mark II Body" class="" type="text" style="width: 100%;" readonly>
</td>
<td>
<input name="textinput" placeholder="" value="Olympus" class="" type="text" style="width: 100%;" readonly>
</td>
<td>
<input name="textinput" placeholder="" value="1" class="" type="text" style="width: 100%;" readonly>
</td>
<td>
<input name="textinput" placeholder="" value="€ 1999,00" class="" type="text" style="width: 100%;" readonly>
</td>
<td class="total-price">
<input name="textinput" placeholder="" value="€ 1999,00" class="" type="text" style="width: 100%;" readonly>
</td>
<td>
<a href="#">
// The edit button
<i class="fa fa-edit" style="color: #C7225C; font-size: 20px;"></i>
</a>
<a href="#">
<i class="fa fa-trash" style="color: #C7225C; font-size: 20px;"></i>
</a>
</td>
Whaat? alle "Eingabe" mit demselben 'Namen'? – roetnig
ich habe das noch nicht geändert, das ist nur das Frontend. – Rubberduck1337106092
Verwenden Sie die Methode ['setAttribute'] (https://developer.mozilla.org/en/docs/Web/API/Element/setAttribute) für die betreffenden Eingaben – Orangesandlemons