关于Success = True我想用bg-success显示div? on Success = False我想用bg-danger显示div?
success: function(data) {
if (data.Success == true) {
$(this).closest('td').find('div.bg-success').removeClass('hide');
}
if (data.Success == false) {
$(this).closest('td').find('div.bg-danger').show();
}
}

<tr>
<td>Name 1</td>
<td>
<input class="text-box single-line nameReservation1" id="NameSet_0_" name="NameSet[0]" type="text" value="" />
</td>
<td>
<div class="bg-success hide">
<span class="glyphicon glyphicon-ok-circle "> Potentially available</span>
</div>
<div class="bg-danger hide">
<span class="glyphicon glyphicon-remove-sign red"> Not available</span>
</div>
</td>
</tr>
&#13;