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
Back To Top
Search