Whether it is possible to transfer the form content with a dynamically generated number of points to it (i.e., only data types are known in advance, and the number is selected by the user).

  • Do not forget that this is jquery, you need to connect api - stck

2 answers 2

<script src="http://code.jquery.com/jquery-latest.js"></script> ... <select id="select" multiple="multiple"> <option selected="selected">1</option> <option>2</option> <option>3</option> </select> ... <script> function my_func() { var value = $("#select").val() || []; $("p").html("Выделенные значения:" + value.join(", ")); } $("#select").change(my_func); my_func(); </script> 

    var a = $ (# id) .val (); Those. The variable 'a' contains the value of the field / select ... of the form with id = 'id'

    • try each one :) - ams
    • You wrote how to count from the field. A person needs to write. - stck