0
Good afternoon, I am trying to assemble a table with Bootstrap and would like to change the label type depending on what was written inside the cell.
Table example:
<table>
<tr>
<td><span class="label label-primary">Texto</span></td>
</tr>
</table>
Situation: If instead of "Text" it was written "Ball", I wish I could change the label from "Primary" to "Success" or any other type, and I have no idea how to achieve this result.
I appreciate all kinds of help with this code because I’m a beginner with Javascript.