I am sending data from database to the page with ajax. i want to show this data with jstree. There are as many folders as the number of data I send. but it doesn't show their names. How can I properly display data with jstree?
CodePudding user response:
I the url of ajax code you missed the file type. *********************************your ajax
$.ajax({
type: "GET",
url: "/Home/anaKategori",
success: function (data) {
.
.
.
*****************************try giving extention of file as here in url
$.ajax({
url : 'test.php', //like this
type : 'post',
data : {'data':'1'},
.
.
.
hope you have got the results by this fix, thank you