E
E
evgemiil2016-10-30 18:11:57
JavaScript
evgemiil, 2016-10-30 18:11:57

How to save the contents of two divs into json objects and take them from there?

While looking for information, I decided to write here, it can turn out faster and more clearly. There are two blocks with content, you fill them in, change them and click save, it is saved to a json object. How to implement this using json object?
codepen.io/evgeniel/pen/yadYom

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2016-10-30
@ronik55

Everything is very simple, in order to make the code more beautiful, we make a handler, because you have more than one form and so as not to produce events for buttons
https://jsfiddle.net/dmh66g62/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question