Hello! There is such a code: https://jsfiddle.net/alcheez/h5vjodx3/
$(document).ready(function(){ $("button").click(function(){ var x = $("form").serializeArray(); $.each(x, function(i, field){ $("#results").append(this.value); }); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <form action=""> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="text" name="LastName" value="Mouse"><br> </form> <button>Serialize form values</button> <div id="results"></div> I managed to get the value of the form and now I need to, say, insert these values ββinto a simple paragraph, for example:
<p>ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅, ΠΌΠΎΡ ΠΈΠΌΡ (Mickey), Π° ΠΌΠΎΡ ΡΠ°ΠΌΠΈΠ»ΠΈΡ (Mouse).</p> I do not understand how this can be achieved, how to write the values ββof form fields in the places I need, help, please.