Bug Tracker

Ticket #9852 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

about DOM

Reported by: zhou695105338@… Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:


I want to use jquery to complete autocomplete function , but I found some problem about DOM.Here is the code

var down = $("<ul style='position:absolute;list-style:none;border:1px solid;background-color:white;margin:0;padding:0;z-index:100;padding-bottom:15px;'></ul>");	




This code will be execute only once.The next time it will stop on code "$("body").remove($("#ul_autocomplete"));" (I see this in firebug)

But if I use javascript like this


The code work fine

Change History

comment:1 Changed 4 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to manipulation

I'm not sure what that code would do, but it is not the correct usage of remove. I'd try

Note: See TracTickets for help on using tickets.