text-right→text-endtext-left→text-starthidden→d-nonedisplay: block→display: flex(evaluate case by case)img-responsive→img-fluid
.label→.badge(evaluate case by case)panel→card(evaluate case by case)panel-body→card-bodypanel-title→card-titlepanel-heading→card-headerpanel panel-default→cardpanel panel-info→card border-infopanel-group→card-group
btn-default→btn-lightbtn-secondary→btn-defaultactive→nav-link active(fornav nav-pills)navbar-header→navbar-brandnavbar-toggle→navbar-togglernavbar-left→navbar-nav me-autonavbar-right→navbar-nav ms-auto
form-group→form-group row(evaluate case by case)input-group-addon→input-group-text
data-toggle→data-bs-toggledata-parent→data-bs-parentdata-target→data-bs-targetdata-dismiss→data-bs-dismissdata-target→data-bs-slide(for carousel controls)
glyphicon glyphicon-trash→fa fa-trash-oglyphicon glyphicon-ok→fa fa-checkglyphicon glyphicon-pencil→fa fa-pencilglyphicon glyphicon-eye-open→fa fa-eyefa fa-remove→fa fa-times
<span class="caret"></span>is removed in Bootstrap 5- Replace with
<span class="dropdown-toggle"></span>
- Replace with
-
Update jQuery files:
- Copy new jquery.js and jquery UI files to project folder
- Update file references in JSP files
- Remove old JS files
- Replace jquery.min.js in jqGrid-4.1.2/js/i18n/ with new version
-
Verification:
- Check jQuery version in browser console
- Test all jQuery-dependent functionality
Example of updated grid classes:
<div class="offset-sm-2 offset-md-2 offset-lg-2 col-sm-4 col-md-4 col-lg-4">- Update Bootstrap CDN or local files to v5
- Update jQuery and related dependencies
- Search and replace class names systematically
- Update data attributes
- Replace Glyphicon icons with Font Awesome equivalents
- Test responsive layouts
- Verify component functionality
- Check for browser compatibility
- Layout shifts due to spacing/margin changes
- Icon rendering issues after Glyphicon replacement
- jQuery compatibility with new Bootstrap version
- Form validation behavior changes
- Modal and dropdown functionality
- Responsive navigation behavior
- Always test thoroughly after migration
- Consider browser compatibility
- Document any custom fixes or workarounds
- Keep Bootstrap 5 documentation handy for reference