Help with popup display

Joined
Sep 17, 2021
Messages
4
Reaction score
0
I'm trying to display a message when a Form field (set-pv) is selected/hovered.
I have this code:

HTML:
<div class="pop-button">
<button type="button" class="btn btn-primary" data-toggle="pop1" title="Popover title" data-content="Default popover">Popover1</button>
</div>

and this:

JavaScript:
$(document).ready(function() {
$('[data-toggle="pop1"]').popover({ placement: 'right', trigger: 'hover', width: '500px' }); });


how could I integrate that, so that the popover shows upon hovering over this form field (instead of the button):


HTML:
<label class="col-md-12" for="set-pv">{{LANG set-pv}}</label>
<div class="col-md-12"> 
 <input id="mySingleFieldTags" name="set-pv" type="text" placeholder="" class="form-control input-md" autocomplete="off"> 
</div>


I look forward to any assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top