EasyUI Forum
September 13, 2025, 07:31:42 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Getting Events to work for tree  (Read 6873 times)
JDMcQ
Newbie
*
Posts: 6



View Profile
« on: January 17, 2015, 10:09:53 AM »

I've just started using EasyUI and am working with the tree object. I can get the tree to render correctly several ways bu NEVER get a simple click event to do anything.

 
Code:
  
<head>
 <script type="text/javascript">
      $(function(){
         $('#cat').tree({
            lines:true,
            animate:true,
            onClick:function(node){
            alert("Test Worked.");
            }
         })
      })
   </script>

</head>

And the HTML part:

Code:
			<ul id="cat" class="easyui-tree" data-options="url:'CatFill.php'"></ul>			


There must be something really simple I'm missing please help.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: January 17, 2015, 07:22:19 PM »

Please refer to this example http://jsfiddle.net/qw8Ljjtv/
Logged
JDMcQ
Newbie
*
Posts: 6



View Profile
« Reply #2 on: January 22, 2015, 07:40:01 PM »

I finally got it working I think I was missing a library. Sometimes when I add one for more functionality, everything that was working stops.  Huh Angry
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!