Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getFormElementId(attribute, formname){
- return formname + '_' + attribute;
- }
- function loadJSONtoForm(data){
- data = $.parseJSON(data);
- $.each(data, function(index, value) {
- var element = '#' + getFormElementId(index, 'QuotationDetail');
- console.log(element);
- $(element).val(value);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement