0

Following is my code all i want when .clickover function being called then it should also call the $(".popover").css function. Kindly let me know how can i make such nested query

 $(function() { 
          $('#notc').clickover({
          title: "Notifications"

          },          function() {
            //$("div.popover").css("margin-left","60px");
            alert("hi");
            }); 

      })
4

1 回答 1

2

通过查看 Bootstrap 文档,我发现的第一个可能对您有用的函数是 onShown,例如:

$(function() { 
      $('#notc').clickover({
          title: "Notifications",
          onShown: function() {
              $("div.popover").css("margin-left","60px");
              alert("hi");
          }
       }); 

});
于 2013-04-11T14:05:09.537 回答