0%

private

按钮可执行性

document.all.share.disabled=true;
document.all.share.disabled=false;

获取gird的值:

var projectsid = gridgetselectvalue("projectsid");

如果gird的名字是mygrid,则:

var projectsid = mygridgetselectvalue("projectsid");

获取普通属性值:

如获取property="result"的值:

var result = document.all.result.value;

获取后端Attribute传值:
<%
    String openjspflag = (request.getAttribute("openjspflag") == null) ? "0" : request.getAttribute("openjspflag").toString();
%>

TD占位分割

<table border="0" width="100%" class="searchzone" >
<TR class="txttr">
    
<td colspan="2">
        <table border="0" width="100%" align="center" cellpadding="0" cellspacing="0">
            <tr>
                
                   <td class="sr" align="left" style="width:1%" nowrap>部门:</td>
                <td  class="sr" align="left" style="width:15%" nowrap>
                    <select:select property="departname"  addspacerow="true" style="width:90%" styleClass="txt" onchange="fillperson()">
                         <select:options collection="gird.factoryname" property="departsid" labelProperty="departname" />
                    </select:select>
                </td>
    
                <td class="sr" align="left" style="width:1%" nowrap>责任人:</td>
                <td  class="sr" align="left" style="width:15%;padding:0" nowrap>
                    <select:select property="personname"  addspacerow="true" style="width:90%" styleClass="txt">
                         <select:options collection="gird.factoryname" property="personsid" labelProperty="personname" />
                    </select:select>
                </td>
                <td width="30%"></td>
                <td width="30%"></td>
                
            </tr>
        </table>
</td>
    
</TR>
</table>

TD占位分割标准版:

<style type="text/css">
table{
    text-align:center;
    border-collapse:collapse;
}
tr{
    height:50px;
}
.mytd{
    border-right:1px solid red;
}
</style>
<table width="100%" border="1" bordercolor="red" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td colspan="2">
        <table border="0" width="100%" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td class="mytd" width="70%">70%</td>
                <td width="30%">30%</td>
            </tr>
        </table>
    </td>
</tr>
<tr>
    <td>50%</td>
    <td>50%</td>
</tr>
</table>

textarea以及其readonly:

<TR class="txttr">
        <td class="sr" align="left"  nowrap width="95%">
            <span  style="height:300px;display:block;vetical-align:top;float:left;">任务内容&nbsp</span>
            <!-- <textarea id="taskcontent" style="width:100%;height:300px;"></textarea> -->
            <html:textarea property="taskcontent" rows="10" style="width:100%"/>
        </td>
</TR>

<td class="sr" align="left"  nowrap width="95%">
            <span style="height:30px;display:block;vetical-align:top;float:left;">任务主题&nbsp</span>
            <!-- <input type="text" id="taskname" style="height:30px;width:100%"> -->
            <html:text property="taskname"  maxlength="20" readonly="false" styleClass="txt" style="width:100%"/>
        
</td>

<TR class="txttr">
        <td class="zw" align="left"  style="width:20%" nowrap>备注:</td>
        <td class="sr" align="right" style="width:80%" nowrap>
            <html:textarea property="remark" rows="10" readonly="false" style="width:100%;height:90px"/>
        </td>
</TR>