Is it possible to change buttons based on the text in a td cell with jquery? I don't want to have two different buttons in a cell. Here's what it looks like right now in jsfiddle. (Sorry about the lack of jquery, I don't know how to approach it)
I have three stages in my mysql table. The column process goes from waiting to processing to shipped.
When it is process and waiting, btn_cancel is displayed.
<input type="submi" class="btn btn-danger" id="btn_cancel" name="cancel" value="Cancel Order">
When it is shipped, btn_hidden is displayed.
<input type="submit" class="btn btn-danger" id="btn_hidden" name="hidden" value="Hide">
How could I achieve this? Or if this is not possible what's the alternative?