Hello everyone I am new to laravel and i have problem in my view... I can get the student data from the database according to the selected class in the dropdown... And i can see that in my console but in my view I am just getting the text like this in my table [object Object] And nothing else ... Below is my code But the problem is in the ajax
My best guess is that value is an object instead of a single value. So you need to get a specific field from that object to display in javascript. So something like this
Ahh thats the best answer but what if i want to get more like student name too and wanna display that in the above table perfectly. Its getting now but not according to my table design
@BOBBYBOUWMANN - Sir your code has so many errors can you please review it . I can't get those errors but the code make sense I hope it will help me out
@BOBBYBOUWMANN - Yes sir now its working perfectly but wanna know another thing... Is there any better way or easy way to include a large block of html code into javascript ?
@BOBBYBOUWMANN - Ok sir I looked that code but not what i want.. Let me explain you what I want and i think that is possible too.
I want my html template on the same place where it is already ... And wanna convert this json data to html form and then refer to my table .. Is it possible... ? I want something like this
@BOBBYBOUWMANN - I want something like this because above in my table design there is alot of things so i want them to be on their place and just refer this data to go there
@BOBBYBOUWMANN - Well I removed all table rows and then do this
$('table[id="studentsData"] > tbody').html('');
But now i am getting data at the backend and nothing else at the frontend
Many developers have faced issue with Laravel View in the code. They have updated this issue in their latest version of the Laravel of the current time careers booster reviews for what you are more altercative in the writing this code for a better view.