Hi everyone
I try to use selectable as bellow code. However it did not work
who can tell me why? Thanks in advance.
Wang Suya
<html>
<head>
<script type="text/javascript" src="jquery-1[1].3.1.min.js"></
script>
<link href="treeTable/src/stylesheets/jquery.treeTable.css"
rel="stylesheet" type="text
/css" />
<link href="master.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="treeTable/src/javascripts/
jquery.treeTable.js"></sc
ript>
<script type="text/javascript">
var b = new String;
$(document).ready(function() {
$("#tree").treeTable();
$("table#tree tr").mousedown(function(){
$("tr.selected").removeClass("selected");
$(this).addClass("selected");
});
$("table#tree tr").selectable({selected: function(event,tr){
alert(1);
}
});
});
</script>
</head>
<body>
<table id="tree">
<tr id="node-1000">
<td>Parent</td><td></td>
</tr>
<tr id="node-3456-2345" class="child-of-node-1000">
<td>Child</td><td><a href="test2.php">test2</a></td>
</tr>
<tr id="node-6789-8234" class="child-of-node-1000">
<td>Child</td><td></td>
</tr>
</table>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---