Jquery如何刪除一個html控件
Jquery如何刪除一個html控件???
remove
該怎么用??能不能給個示例??謝謝
HTML code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(function(){
$('#btn').click(function(){
$('#txt').remove();
})
})
</script>
</HEAD>
<BODY>
<input type='text' id='txt' value='sandy' />
<input type='button' id='btn' value='remove' />
</BODY>
</HTML>
jquery的文档上都有事例的哦
HTML code:
<p>Hello</p> how are <p>you?</p>
JScript code
Code highlighting produ
相关问答:
<div style="WIDTH: 8; HEIGHT: 12;
OVERFLOW: scroll">
这里输入内容这里输入内容这里输入内容这里输入内容这里输入内容
这里输入内容这里输入内容这里输入内容这里
</scrollbar> ......
<embed src="http://player.youku.com/player.php/sid/XMTU0ODM0OTE2/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess=&q ......
在发表评论时 过滤 如何:<br/> <hr/> 双引号 单引号 还有其他 等 有好的方法告诉一下 谢谢
.replace(/<\w+[^>]*>/g,"").replace(/'/g,"''")
将单引号换成2个 ......
<head runat="server">
<title>无标题页</title>
<style type="text/css">
*{ margin:0}
body,html,form{ height:10 ......
http://bowos.com/biye/index.html
1、在ie6无法将黑色底条透明。。求解。。。
其余版本ie均无问题。
2、当ie6浏览器改变大小时,中间图不会随着改变而变小
3、改变大小时,顶部出现缺失。。
以上问题均在ie6发 ......