ajax - Transferring listbox options values to the server -


I have a form, in which 2 list-boxes are between the other input fields, when I click on a button Choice of items from one list box to another (left-right or vice-contrast) content (list option in the list box) Now I need the contents of both listboxes on the server. Submit on the form, I can only move the selected value to the Listbox server, not all the options. So I have 2 options:

  1. On the click event of a button that transfers content from left to right, I am sending content on the server by calling an Ajax.

  2. Before submitting the form, I place all the values ​​in the listbox in a hidden field so that the form is stored on the form, I can access it on the server

    Which of these is better for my situation ?? Edit: The defect of implementing the first method is that whenever the user transfers the listbox A to B, the server's journey will be created through Ajax

    Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -