I have a slight problem with my application. What is suppose to happen is that when the user selects an option and answer and submits it, it will add a new row. The problem is that the question number is suppose to be +1 every time a new row is created so that it goes question number 1 for row 1, question number 2 for row 2 and etc. Instead it is just displaying the number 1 for each row under the question number column.
How can I get it to display 1,2,3 etc for the question No for each row added.
To use the jsfiddle app do this:
open grid and select option “3”, type in the number 1 in the “Number of Answers” text-box and select Button “A”. Then click on “Add Question” and a new row is added.
“qnum” in the insertQuestion(form) function controls the question number and the insertQuestion(from) function can be found near the bottom of the javascript code and this function adds the new rows in the table.
Code is in jsfiddle, click here
Thanks
You were missing an opening
<form>tagforked fiddle: http://jsfiddle.net/ubS6c/