skip to Main Content

Jquery append and Push not a function

Jquery push and append not working. I have this code <form action=""> <input type="text" name="text"> <input type="text" name="textw"> <button type="submit" name="submit">submit</button> </form> <p>teasdfas</p> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script> $('form').on('submit', function(e) { e.preventDefault(); let formata = $('form').serialize(); formata.append('id', '1300'); console.log(formata) }) </script> The…

VIEW QUESTION

How to count total results with ajax? – Laravel

Have a problem with total count of ajax searche's results. There is a mistake "Method IlluminateDatabaseEloquentCollection::total does not exist." if I use directive for example <div class="searched-item"> <a href="#" class="searched-item-res1">{{ __('main.res_found') }} {{$sfilms->total()}} {{ __('main.res_results') }}</a> </div> How to fix…

VIEW QUESTION
Back To Top
Search