In my Spring Boot web application, I have incorporated Bootstrap with features like SB Admin and data tables, all of which are functioning correctly. However, I am facing an issue with implementing a Bootstrap modal popup. Below is my JSP code:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html>
... (code continues)
I have tried opening the popup using both a toggle button and jQuery. For the toggle button, I have used:
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
And for jQuery, I have attempted:
$("#myModal").modal("show");
as well as
$("#myModal").modal("toggle");
Despite researching and attempting to troubleshoot based on similar posts, the issue persists. Any assistance would be greatly appreciated.
Thank you in advance.