screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bootstrap 5 Modal Example</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"> <style> .container { padding: 20px; text-align: center; width: 600px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.24); } .btn { margin: 5px; } </style> </head> <body> <div class="container"> <h3>Bootstrap Tooltip on Input Field Elements</h3> <form> <div class="form-group"> <label for="name">Name:</label> <input type="text" class="form-control" id="name" data-toggle="tooltip" data-placement="top" title="Enter your name"> </div> <div class="form-group"> <label for="email">Email:</label> <input type="email" class="form-control" id="email" data-toggle="tooltip" data-placement="top" title="Enter your email"> </div> <div class="form-group"> <label for="address">Address:</label> <input type="text" class="form-control" id="address" data-toggle="tooltip" data-placement="top" title="Enter your address"> </div> <button type="submit" class="btn btn-primary ">Submit</button> </form> </div> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js"></script> <script> $(document).ready(function () { $('[data-toggle="tooltip"]').tooltip({ trigger: 'focus' // Show tooltip on focus }); }); </script> </body> </html>