日期:2014-05-16  浏览次数:20378 次

跪求指教Jquery
页面代码:
HTML code

<div id="option1">
<table border="1"  cellspacing="0" width="100%">
                    <tr align="center" bgcolor="#ccccff">
                        <td>机构名称</td>
                        <td>所属部门</td>
                        <td>员工人数</td>
                        <td>操作</td>
                    </tr>

                    <tr align="center">
                        <td>部品仓库</td>
                        <td>资材部</td>
                        <td>10人</td>
                        <td>
                            <input type="button" id="delBtn" name="delBtn" value="删除"/>
                            <input type="button" id="updBtn" name="updBtn" value="修改"/>
                        </td>
                    </tr>
                    
                    <tr align="center">
                        <td>部品仓库</td>
                        <td>资材部</td>
                        <td>10人</td>
                        <td>
                            <input type="button" id="delBtn" name="delBtn" value="删除"/>
                            <input type="button" id="updBtn" name="updBtn" value="修改"/>
                        </td>
                    </tr>
                    
                    <tr align="center">
                        <td>部品仓库</td>
                        <td>资材部</td>
                        <td>10人</td>
                        <td>
                            <input type="button" id="delBtn" name="delBtn" value="删除"/>
                            <input type="button" id="updBtn" name="updBtn" value="修改"/>
                        </td>
                    </tr>
                    
                    <tr align="center">
                        <td>部品仓库</td>
                        <td>资材部</td>
                        <td>10人</td>
                        <td>
                            <input type="button" id="delBtn" name="delBtn" value="删除"/>
                            <input type="button" id="updBtn" name="updBtn" value="修改"/>
                        </td>
                    </tr>
                </table>
</div>
<div id="option1add" style="display:none;">
        <form action="#" method="post">
        <table border="1"  cellspacing="0" width="100%">
            <tr align="center" bgcolor="#ccccff">
                <td>机构名称</td>
                <td>所属部门</td>
                <td>员工人数</td>
                <td>操作</td>
            </tr>
            <tr align="center">
                <td><input type="text" id="name" name="name"/></td>
                <td>
                    <select id="own">
                        <option value="1">资材部</option>
                        <option value="2">生管部</option>
                        <option value="3">技术部</option>
                    &