juery动态添加和删除
拼语句添加框(不能删除原有的tr)
//点击a标签
$("#a").on("click",function(){
var $newtr = $("<tr id='model'>"
+"<td><input type='text' name='contacts.contactName' value=''></td>"
+"<td><input type='text' name='contacts.contactTel' value=''></td>"
+"<td><input type='text' name='contacts.contactFax' value=''></td>"
+"<td><input type='text' name='contacts.contactEmail' value=''></td>"
+"<td><input type='text' name='contacts.contactRole' value=''></td>"
+"<td ><a href='javascript:void(0);' class='del'>删除</a></td>"
+"</tr>");
$newtr.find(".del").click(function(){
$(this).parents("tr").remove();
});
$("#fourdiv").append($newtr);
});
删除之前有的tr
$(".del").click(function(){
$(this).parents("tr").remove();
});
效果图
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA7UAAADtCAIAAADvDsVlAAAbWklEQVR4nO3d33Lb5p2H8fdG0MuINKAuos7J3gFiUe5xZ4+6dyBIsnLcZnPSyWRS/cMeeDxJXe/sQSRZtmenmyCOXGcmXVWyRGq16569e/ACeEGQoBWmIoAvn8/ggJEoip2fX/ARCoLGAgAAAMiZpp8AAAAA0CL0MQAAAODRxwAAAIBHHwMAAAAefQwAAAB49DEAAADg0ccAAACARx8DAAAAHn0MAAAAePQxAAAA4NHHAAAAgEcfAwAAAB59DAAAAHj0MQAAAODRxwAAAIBHHwMAAABeqY9TGxobJdkNM7Yl7m6JNcbG6T/ySUTlx88l0chvjxIb5b83ja0J7ZSnUPzs+POMw/f8LAAAABbZSB+no+0bh9ZEYz8xep80rlbsT+U7uPK7UhsaG6c2iawJbZraKH8+cZj3dE3KTyl4+hgAAABT1J9fkdrQ2DAe+VrlmK4JbRLnMZrM0scur8PY36g8Ad/HxWHjSb/IFXM5fKOxA9LF1ydEPwAAAGCtLfexK9SkaM3xzWVlfvzYZevP6ePs2HNeqy6+fSKXjw3nv2jisWp3eka5raO6g9nuMTl+DAAAgBqlPk79uQeuXP25yOUDrv+gPi7XcPF7s+PT7teNHT+2pYivPE5dOo/91vecfQEAAIAFN+H8iuqpDvlx3KT03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AAgEcfAwAAAB59DAAAAHj0MQAAAODRxwAAAID3//XavUDYmsOUAAAAAElFTkSuQmCC" alt="" />
juery动态添加和删除的更多相关文章
- 插件~使用ECharts动态在地图上标识点~动态添加和删除标识点
之前写过一个Echarts的文章,没有基础的同学可以先看这<上一篇>,对于一个地图和说,我们在初始化之后,你可能被在地图上标识出一些点,当然这根据你的业务去标识,而如果每次更新数据都加载全 ...
- [Flex] Accordion系列-动态添加或删除Accordion容器中项目
<?xml version="1.0" encoding="utf-8"?> <!--Flex中如何使用addChild()和removeCh ...
- Unity NGUI中动态添加和删除sprite
(以后,参考链接和作者将在文章首部给出,转载请保留此部分内容) 参考链接:http://www.narkii.com/club/thread-299977-1.html,作者:纳金网 比巴卜: 参考链 ...
- jquery 动态添加和删除 ul li列表
今天需要实现一个jquery动态添加和删除 ul li列表中的li行,自己简单的实现乐一个,分享一下 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ...
- 原生JS动态添加和删除类
原生JS动态添加和删除类 由于需要, 给按钮组监听点击事件(要求用事件委托),当有一个按钮被点击时,相应的给该按钮添加一个类(激活类),其他没有点击的按钮就要移出该类 添加和和删除类有三种方法 首先等 ...
- adoop集群动态添加和删除节点
hadoop集群动态添加和删除节点说明 上篇博客我已经安装了Hadoop集群(hadoop集群的安装步骤和配置),现在写这个博客我将在之前的基础上进行节点的添加的删除. 首先将启动四台机器(一主三从) ...
- js动态添加和删除标签
html代码 <h1>动态添加和删除标签</h1> <div id="addTagTest"> <table> <thead& ...
- SpringBoot定时任务升级篇(动态添加修改删除定时任务)
需求缘起:在发布了<Spring Boot定时任务升级篇>之后得到不少反馈,其中有一个反馈就是如何动态添加修改删除定时任务?那么我们一起看看具体怎么实现,先看下本节大纲: (1)思路说明: ...
- js进阶 9-11 select选项框如何动态添加和删除元素
js进阶 9-11 select选项框如何动态添加和删除元素 一.总结 一句话总结: 二.js进阶 9-11 select选项框如何动态添加和删除元素 1.案例说明 2.相关知识 Select 下拉列 ...
随机推荐
- lambda的Func<>函数
Func<int,int,int> fc=(int x,int y)=>x*y;Console.WriteLine(fc(5, 2)); //声明一个方法,返回值为int,参数是两个 ...
- document.cookie打不出来cookies
比如session这种设置,都是设置了HttpOnly 导致document.cookie看不到,这和xss 跨站脚本攻击(Cross Site Scripting)
- node的实践(项目一)
学习一门语言,我们先要学习他的基本的语法,基本的数据类型,基本的数组操作,字符串的操作,然后就是语言的特性,实现共享和降低耦合的方式,然后开始比较高级的学习(所有语言都是一样的),比如说通信方法,tc ...
- margin的理解
1.盒子模型 在进行网页设计的时候,我们使用的是盒子模型,其内容如下: 整个网页就是大盒子套小盒子,小盒子又套更小的盒子来实现的.但是在做网页设计时总是搞不清margin和padding的使用方式,在 ...
- C#配置文件管理
最近在做项目的过程中用到配置文件,本文简要说明本人在项目过程中是如何使用配置文件的,目的是加深自己对配置文件管理的理解,以便在下次使用时能做到轻松自如. 配置文件,顾名思义,是用户在使用系统或者软件时 ...
- PHP微信登錄(網頁授權)之後的獲取用戶的信息
//這部峯代碼是封裝的庫文件,<?php /** * Created by PhpStorm. * User: root * Date: 16-6-23 * Time: 下午3:29 */ cl ...
- 每天一个linux命令(14):which命令
我们经常在linux要查找某个文件,但不知道放在哪里了,可以使用下面的一些命令来搜索: which 查看可执行文件的位置. whereis 查看文件的位置. ...
- 读代码之private construtor
private 构造函数 private修饰构造函数在Singleton设计模式中经常使用.但是今天在读到EntityUtils时,发现这是一个final类.final很好理解:EntityUtils ...
- Bata版本冲刺计划及安排
下一阶段需要改进完善的功能 UI: 1. 界面不够精细,布局不够美观并且尚有BUG没有解决,图形.色彩间不够协调. 2. 理清界面间的跳转逻辑. 搜索: 搜索成功并定位后,不会影响地理标签的显示. 定 ...
- DELETE和DELETE FROM有什么区别
你如果只针对表进行删除,则一样. 但是如果需要联合其他表,则需要使用from 例如 delete tb1 from tb1 m where id in (select id from tb2) 我的习 ...