Actually problems climb one after the other in this project. Here is another one. There is a Type menu item in it select. Everything is perfectly selected, recorded in the title of the item, but not transferred to the selected value in the form. What cant?
- Here's the code: jsfiddle.net/martynuk/dbpreadv - sagan
|
1 answer
The first thing that comes to mind is that the input element has no name attribute.
- there is no input at all ... - sagan
- @zorro, there is no input, no select, what should be transmitted when submitting a form? Make invisible input and fill it along with the button. - Visman
- one<input type = "hidden" name = "... - invisible input :) How does your form go to the server? - Visman
- oneI would do that. I would add a hidden field to the form <input type = "hidden" id = "id_input_for_label" name = "input_for_label" value = "" />. Then, before this line of code, $ target.closest ('. Btn-group') would put the command to fill in the added $ field ('# id_input_for_label'). Val ($ target.text ()); But I did not understand how the form goes to the server;) - Visman
- 2
|