Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.77 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Dyanamically create a table and display data using JQuery
  2. OrderId
  3. Header
  4. QuestionContent
  5.  
  6. QuestionType (Based on this value I have to create a Dropdown or Radiobutton or Text box)
  7.  
  8. SubQuestions ( This is a property of type class which has OrderId, Header, QuestionContent, QuestionType properties. For example Question 15)
  9.        
  10. formContainer = $('#formContainer');
  11.  
  12. row = $('<div>', {'class':'formRow'}).appendTo(formContainer);
  13.     $('<label>', {text:'Name', for:'inputName'}).appendTo(row);
  14.     $('<input>', {type:'text', id:'inputName'}).appendTo(row);
  15.  
  16. row = $('<div>', {'class':'formRow'}).appendTo(formContainer);
  17.     $('<label>', {text:'Password', for:'inputPassword'}).appendTo(row);
  18.     $('<input>', {type:'password', id:'inputPassword'}).appendTo(row);
  19.  
  20. ... and so on ...