日期:2014-05-17  浏览次数:20567 次

Jquery动态删除
<script src="JS/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery("#Button1").click(function () {
                var i = 0;
                i++;
                var table = jQuery("<table></table>");
                var tr1 = jQuery("<tr>"
                                + "<td><input id='checkbox" + i + "' type='checkbox' name='checkbox' /></td>"
                                + "<td>工具名:</td>"
                                + "<td><select id='Select1" + i + "'><option></option></select></td>"
                                + "<td>已借出:</td>"
                                + "<td><span id='desc" + i + "'>1000</span></td>"
                            + "</tr>");

                var tr2 = jQuery("<tr>"
                                + "<td></td>"
                                + "<td>现存:</td>"
                                + "<td><span id='span" + i + "'></td>"
                                + "<td>需求数量:</td>"
                                + "<td><input type='text'&