#10841 closed bug (invalid)
.last() doesn't update
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
HTML
<html> <input type="text" name="1" id="1" /> <input type="text" name="2" id="2" /> </html>
Javascript
$("html input").last().css("border", "1px solid red"); $("html").append('<input type="text" name="3" id="3" />'); $("html input").last().css("border", "1px solid red"); //nothing happens
Change History (2)
comment:1 follow-up: 2 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
Replying to dmethvin:
You've appended your input element to the
html
element, which is invalid. Did you meanbody
perhaps?
Yes, my mistake. Should be:
<html> <body> <input /> <input /> </body> </html>
Note: See
TracTickets for help on using
tickets.
You've appended your input element to the
html
element, which is invalid. Did you meanbody
perhaps?