Ticket #5412 (closed bug: invalid)
Refresh selectors
| Reported by: | david71rj | Owned by: | john |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.4 |
| Component: | selector | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
On create a new element on screen, is need review all.
See: $('table td.even').each(function() {
$(this).css('background: red')
});
Okay, this works, but if, after, you add a new element inner this table, this don't will get red background (if even).
-TABLE-
-TR-TD-[red]
-TR-TD-
~AFTER SCRIPT, NEW:~
-TR-TD-[not red :(]
I suggest any as:
$('table td:even').every(function(){
$(this).css('background: red');
})
Then, if you add a new HTML element, this will be verified before, then apply the function relactive.
This is possible?
Bye.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Sorry, don't is a bug, is a enchancement