0
Ich habe ein Farbraster mit 1 Zeile erstellt. Nun möchte ich meine Farben im Raster sortiert nach dieser Reihenfolge "blau", "rot", "grün", "gelb", " orange "," pink "," braun "," schwarz " mit jquery.Ist es möglich ??? Html:Sortierung der Farben mit jquery
<body style="background-color:#663366">
<div class="form-group" >
<div class="col-sm-5">
<table border="5px" width="500px" height="50px" align="center">
<tr id="colors">
<td height="50px" bgcolor="red"></td>
<td height="50px" bgcolor="brown"></td>
<td height="50px" bgcolor="pink" ></td>
<td height="50px" bgcolor="blue" ></td>
<td height="50px" bgcolor="black"></td>
<td height="50px" bgcolor="green"></td>
<td height="50px" bgcolor="orange" ></td>
<td height="50px" bgcolor="yellow"></td>
</tr>
</table>
</div>
</div>
</body>
Hier ist die Geige: https://jsfiddle.net/n6msyp8m/2/
''