table新增空白行到首行

var str="";
			str+="<tr bordercolor='#DEDEDE' bgcolor='#ffffff'>";
			str+="<input type='hidden' id='id' name='tid'>";
	  		str+="<td align='center' bordercolor='#DEDEDE'><input type='checkbox' name='isSelect' ></input></td>";    
	  		str+="<td bordercolor='#DEDEDE' width='120px'><input type='text' class='t'   id='name'   style='font-size:12px; color:black; text-align:center;width:120px'  onChange='saveTrip(this)' > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='110px'><input type='text'  class='t'   id='part'   style='font-size:12px;  color:black;  text-align:center;width:110px'  > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='110px'><input type='text'  class='t'   id='subPart'   style='font-size:12px;  color:black;  text-align:center;width:110px' > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='400px'><input type='text'  class='t'   id='purpose'   style='font-size:12px;  color:black;  text-align:center;width:400px' > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='110px'><input type='text'  class='t'   id='scheduleStart'   style='font-size:12px;  color:black;  text-align:center;width:110px' > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='110px'><input type='text'  class='t'   id='scheduleEnd'   style='font-size:12px;  color:black;  text-align:center;width:110px' > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='50px'><input type='text'  class='t'   id='duration'   style='font-size:12px;  color:black;  text-align:center;width:50px'  > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='80px'><input type='text'  class='t'   id='destination'   style='font-size:12px; color:black;   text-align:center;width:80px'  > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='80px'><input type='text'  class='t'   id='region'   style='font-size:12px;  color:black;  text-align:center;width:80px' > </td>";
	  		str+="<td bordercolor='#DEDEDE' width='80px'><input type='text'  class='t'   id='department'   style='font-size:12px; color:black;   text-align:center;width:80px' > </td>";
	  		str+="<td align='center' bordercolor='#DEDEDE' width='60px'> <img src='${pageContext.request.contextPath}/FlatUI/img/edit2.png' id='report'  width=18px height=18px/></a></td>";
	  		str+="<td align='center' bordercolor='#DEDEDE' width='60px'> <img src='${pageContext.request.contextPath}/FlatUI/img/edit2.png' id='referrence'  width=18px height=18px/></a></td>";
	  		str+="</tr>";
	  		$("#tableTrip").prepend(str);

 

posted @ 2016-09-28 14:20  wujixing909  阅读(339)  评论(0编辑  收藏  举报