- 论坛徽章:
- 0
|
在Ajax设计程序时动态加载文本域和下拉框:
其方法如下:
function createCellText(){
var text=document.createElement('input');
text.setAttribute('name','txt');
text.setAttribute('type','text');
text.setAttribute('id','txt');
text.setAttribute('value','txt');
text.setAttribute('size','3');
var cell=document.createElement('td');
cell.setAttribute('align','center');
cell.appendChild(text);
return cell;
}
function createCellSelect(){
var erp=new Array(2);
for(var i=0;i
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/50618/showart_426216.html |
|