skip to Main Content

Load list objects in ajax response and create dynmic list divs with this data – Jquery ajax

I have this part of HTML: <div class="container"> <div class="row"> <div class="col-sm-4"> <div class="card"> <div class="card-body"> <h4 class="card-title">{title}</h4> <p class="card-text">{content}</p> <a href="#" class="card-link">Read...</a> </div> </div> </div> </div> </div> and I have ajax request which calls after page loading: <script> $(window).on('load',…

VIEW QUESTION

Populate datatable using ajax call – Jquery ajax

I am trying to populate a data table using ajax call. But it fill only the first column with last value from columns. Here is my code: $(document).ready(function() { $.ajax({ url: "http://192.168.2.32:5000/get_all_locations", 'method': 'GET', 'contentType': 'application/json' }).done(function(data) { console.log('dataaa', data);…

VIEW QUESTION
Back To Top
Search