text-right
→text-end
text-left
→text-start
hidden
→d-none
display: 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-body
panel-title
→card-title
panel-heading
→card-header
panel panel-default
→card
panel panel-info
→card border-info
panel-group
→card-group
btn-default
→btn-light
btn-secondary
→btn-default
active
→nav-link active
(fornav nav-pills
)navbar-header
→navbar-brand
navbar-toggle
→navbar-toggler
navbar-left
→navbar-nav me-auto
navbar-right
→navbar-nav ms-auto
form-group
→form-group row
(evaluate case by case)input-group-addon
→input-group-text
data-toggle
→data-bs-toggle
data-parent
→data-bs-parent
data-target
→data-bs-target
data-dismiss
→data-bs-dismiss
data-target
→data-bs-slide
(for carousel controls)
glyphicon glyphicon-trash
→fa fa-trash-o
glyphicon glyphicon-ok
→fa fa-check
glyphicon glyphicon-pencil
→fa fa-pencil
glyphicon glyphicon-eye-open
→fa fa-eye
fa 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