I have a form that consists of several pages. To go through the form, everything I do is shown and hides the div containers. The last page is the confirmation page before sending. It takes the contents of the form and issues it so that the user can see that he / she simply filled out. If they click on one of them, they will return them to the page on which they were (# nav1 ~ 3), focus on this field and let them enter a new value, if necessary.
Using jQuery, I made variables for EVERY field / radio / check / select / textarea / whatever. If my method seems stupid, please write to me, but basically, and this method works fine already, but I'm trying to scale , and I don't know how, because I really don't know what I'm doing. Thoughts?
var field1 = '<a href = "#" onclick = "$ (\' # nav1 \ '). click (); $ (\' input # field-1 \ '). focus ();" title = "Click to edit"> '+ $ (' input # field-1 '). val () +' </a> '; $ ('# field1-confirm'). html (field1); var field2 = '<a href = "#" onclick = "$ (\' # nav1 \ '). click (); $ (\' input # field-2 \ '). focus ();" title = "Click to edit"> '+ $ (' input # field-2 '). val () +' </a> '; $ ('# field2-confirm'). html (field2); And so on, with a field of 3, 4, 5 ~ 25, etc.
If you could explain the explanations in terms other than programmers, I would really like you forever.
limitedability
source share