Home >Web Front-end >JS Tutorial >How to Open a Bootstrap Modal Window Using jQuery?
In Bootstrap, you can manually manipulate modal windows using specific functions.
Function Call Examples:
$('#myModal').modal('toggle'); // Toggle visibility $('#myModal').modal('show'); // Show modal $('#myModal').modal('hide'); // Hide modal
Specific Problem Resolution:
In your provided code, the following modification needs to be made:
Replace:
$('#my-modal').modal({ show: 'false' });
With:
$('#myModal').modal('show');
Additional Information:
The above is the detailed content of How to Open a Bootstrap Modal Window Using jQuery?. For more information, please follow other related articles on the PHP Chinese website!