I'm trying to use one of bpopup examples in my xhtml page, and I have tried everything I can think of but it's not working.
bpopup (jQuery plugin),code example
here is my try so far..
HTML:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>Calendar</title>
  <link rel="stylesheet" href="http://dinbror.dk/bpopup/assets/style.min.css" media="screen" type="text/css"/>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
   <script src="http://dinbror.dk/bpopup/assets/jquery.bpopup-0.9.4.min.js"></script>
   <script src="http://dinbror.dk/bpopup/assets/jquery.easing.1.3.js"></script>
</h:head>
<h:body>
 <!-- Button that triggers the popup -->
        <button id="#my-button">POP IT UP</button>
        <!-- Element to pop up -->
        <div id="#element_to_pop_up">Content of popup</div>
</h:body>
</html>
js:
// Semicolon (;) to ensure closing of earlier scripting
// Encapsulation
// $ is assigned to jQuery
;(function($) {
 // DOM Ready
$(function() {
    // Binding a click event
    // From jQuery v.1.7.0 use .on() instead of .bind()
    $('#my-button').bind('click', function(e) {
        // Prevents the default action to be triggered. 
        e.preventDefault();
        // Triggering bPopup when click event is fired
        $('#element_to_pop_up').bPopup({
    content:'iframe', //'ajax', 'iframe' or 'image'
    contentContainer:'.content',
    loadUrl:'http://dinbror.dk/search' //Uses jQuery.load()
});
    });
});
})(jQuery);
Any help will be appreciated!
                        
Found it!
I just deleted # in button id and in element_to_pop_up
and use this css file instead :