355 |
|
|
356 |
var el = document.createElement('input'); |
var el = document.createElement('input'); |
357 |
el.setAttribute('type', 'text'); |
el.setAttribute('type', 'text'); |
358 |
el.setAttribute('disabled', 'true'); |
// disabled fields are not submitted |
359 |
|
//el.setAttribute('disabled', 'true'); |
360 |
el.setAttribute('name', attr); |
el.setAttribute('name', attr); |
361 |
el.setAttribute('id', '_attr_'+attr+'_id'); |
el.setAttribute('id', '_attr_'+attr+'_id'); |
362 |
el.setAttribute('size', val.length < 60 ? 60: val.length); |
el.setAttribute('size', val.length < 60 ? 60: val.length); |