Advertisement
fernandezekiel

Untitled

Jan 15th, 2013
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getFormElementId(attribute, formname){
  2.    
  3.     return formname + '_' + attribute;
  4. }
  5. function loadJSONtoForm(data){
  6.     data = $.parseJSON(data);
  7.  
  8.     $.each(data, function(index, value) {
  9.         var element = '#' + getFormElementId(index, 'QuotationDetail');
  10.         console.log(element);
  11.         $(element).val(value);
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement