Bug Tracker

Modify

Ticket #4085 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

remove() method don't work

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

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

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.