F
F
freestm2017-09-08 19:51:16
css
freestm, 2017-09-08 19:51:16

How to make that when submitting the form, the content was sent distinctive it is input?

That is, in addition to inputs, you also need to send the contents of div and button.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Froggyweb, 2017-09-08
@Froggyweb

The button content is strange to send to the server. The content of the block is assigned to the value of the input with the hidden attribute

A
Alexander Sharomet, 2017-09-08
@sharomet

if you just submit, then
input type="hidden" value="value" is the only way
If you use ajax, then you can push any data from any tag.
$.post(url, {
data: your data.
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question