beforeActivate not firing jeasyui

240 Views Asked by At

I've read through many of these questions and they are answered the same. I've tried it but can't get it to work. I've gotten the code very small. What am I doing wrong? The tabs work fine, but no event getting fired.

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>

    <script type="text/javascript">    
      $(document).ready(function() { 
        $('#tabs').tabs({
          beforeActivate: function(event,ui) {
            alert("Tabs Changed");
          }
       });
      });

    </script>
  </head>
  <body>
    <div class="easyui-tabs" id="tabs">         
      <div Title="Home" >
        Home
      </div>
      <div Title="Admin">     
        Admin
      </div>
    </div>
  </body>
</html>

thanks, dave

0

There are 0 best solutions below