Results 1 to 2 of 2

Thread: A button inside a popover

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    1

    Question A button inside a popover

    Hello.
    I need to have a button with a popopver to ask the user if he really wants to delete an item, with a confirm and cancel button inside the popover.
    I don't know anything about javascript.
    So i search on the web and i found something to ativate the popover.
    HTML Code:
    <script type="text/javascript">
    $(document).ready(function(){
        $(".popover-top").popover({
            placement : 'top'
        });
        $(".popover-right").popover({
            placement : 'right'
        });
        $(".popover-bottom").popover({
            placement : 'bottom'
        });
        $(".popover-left").popover({
            placement : 'left'
        });
    });
    </script>
    <a href="#" class="btn btn-danger btn-xs popover-top" data-toggle="popover" title="Do you really want to delete this item ?" data-content="confirm / cancel  "><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
    It works !

    BUT

    I don't know how can i put a button inside the popover.

    Can you please help me ?

    Thank you very much.

  2. #2
    Junior Member
    Join Date
    Mar 2014
    Location
    Rialto, CA
    Posts
    2
    If you'r using Bootstrap, it seems that you could use an alert rather than a popover. Check out the Bootstrap docs at http://getbootstrap.com I'm sure you coul provide the alert with a button.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •