I have the following code setup:
Had to change it a little bit to get it all on jsfiddle but the problem i’m having is the data from the first from gets put into the query string to send off to the ajax call, but the form elements generated after that (which comes from a JSON call) don’t get submitted when clicking the next button again.
So when you get to the second question how can I submit the ‘answer’ input that was generated. – see the console for the outputs.
Hope that makes sense.
Any help is appreciated.
Thanks.
This is happening because you are replacing your entire
<form>element with the new HTML content from question 2. Replace$('.FinderOptionsInner').htmlwith$('#formStep').htmlSee http://jsfiddle.net/M3eZp/1/