Bug Tracker

Opened 11 years ago

Closed 10 years ago

#4085 closed bug (invalid)

remove() method don't work

Reported by: td Owned by:
Priority: major Milestone: 1.3.2
Component: unfiled Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:

Description

hi all!

I have a small problem. when append html element on jQuery then remove. but that element not removed. what's wrong?

I use IE6.0 SP2.

=============================================

<html> <head> <SCRIPT language="JavaScript" charset="Shift_JIS" src="./jquery-1.3.1.min.js"></SCRIPT>

<script> $(document).ready(function(){

var s = $("input[name='hoge1']").size(); $("#dummy1").text(s);

$('<input type="hidden"/>').attr("name", "hoge2").val("fuga").appendTo("#f1");

$("input[name='hoge2']").remove();

var s2 = $("input[name='hoge2']").size(); $("#dummy2").text(s2);

$("#f1>input").each(function() {

window.alert(this.name + " = " + this.value);

});

}); </script>

</head> <body>

<form id="f1" name="form"> <input type="text" name="hoge1" /> <br /> dm1=<span id="dummy1"></span> <br /> dm2=<span id="dummy2"></span> </form> </body> </html>

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

Please ask questions on the forum, not the bug tracker.

Note: See TracTickets for help on using tickets.