
Untitled
By: a guest on
May 8th, 2012 | syntax:
None | size: 0.77 KB | hits: 16 | expires: Never
Dyanamically create a table and display data using JQuery
OrderId
Header
QuestionContent
QuestionType (Based on this value I have to create a Dropdown or Radiobutton or Text box)
SubQuestions ( This is a property of type class which has OrderId, Header, QuestionContent, QuestionType properties. For example Question 15)
formContainer = $('#formContainer');
row = $('<div>', {'class':'formRow'}).appendTo(formContainer);
$('<label>', {text:'Name', for:'inputName'}).appendTo(row);
$('<input>', {type:'text', id:'inputName'}).appendTo(row);
row = $('<div>', {'class':'formRow'}).appendTo(formContainer);
$('<label>', {text:'Password', for:'inputPassword'}).appendTo(row);
$('<input>', {type:'password', id:'inputPassword'}).appendTo(row);
... and so on ...