Hello,
I have realized a asynchronous treeview in php, now i want to add onclick event to the items in the treeview, and then make query in mysql.
Do you know how to do that?
Thanks a lot.
Edit:
Async.html:
<script type="text/javascript">
$(document).ready(function(){
$("#black").treeview({
url: "twodimen.php"
});
$("#black > li").live("click",function()){
$.get("");
})
});
</script>
<ul id="black">
</ul>
But when i add the $("#black > li").live("click", function()){}
, the treeview doesn't display.
How to do that?