title: twitter bootstrap popover on ajax loaded content
body: <p>I am trying to assign popover from twitter bootstrap to an element which is loaded via ajax and I have this:</p>
  <pre><code>        $(document).on(&quot;click&quot;, &quot;.checkRezolvataTrecut&quot;, function(event){
          switch(dataCheckTrecut[1]) {
              case '02': 
                  var luna = &quot;Februarie&quot;;
                  break;
          }
          $(&quot;.checkRezolvataTrecut&quot;).popover({
              placement: &quot;top&quot;,
              content: &quot;&lt;button class='btn btn-default mutaTrecut' style='width: 100px;'&gt;&quot; + luna + &quot;&lt;/button&gt;&lt;button class='btn btn-default mutaCurent' style='width: 100px;'&gt;Luna curenta&lt;/button&gt;&quot;,
              html: true
  
          });
      });
  </code></pre>
  <p>The problem is that on first click nothing happens. After the first click it works. As a mention, I didn't understood bootstrap js too well. Any ideas?</p>