" required /></td> </tr> <tr> <th><label for="paygrade">Rank Paygrade:</label></th> <td><input type="text" id="paygrade" name="paygrade" value="<?php echo $rank->getPaygrade(); ?> " required /></td> </tr> <tr> <th><label for="division">Division:</label></th> <td> <select id="division" name="division"> <?php foreach (Division::getAllDivisions() as $division) { if ($rank->getDivision()->getDivision() == $division->getDivision()) { echo '<option value=' . $division->getDivision() . ' selected>' . $division->getName() . '</option>'; } else { echo '<option value=' . $division->getDivision() . '>' . $division->getName() . '</option>'; } } ?> </select> </td> </tr> <tr> <td colspan="2"><button id="edit" name="edit" class="btn btn-primary" type="button" onclick="editRank()">Edit</button></td> </tr> </table> </form> <div id="loading" class="alert alert-info" role="alert" style="display: none">