Modify ↓
Ticket #1548 (closed bug: invalid)
select by classname error
| Reported by: | pharaoh | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2 |
| Component: | core | Version: | 1.1.4 |
| Keywords: | classname | Cc: | |
| Blocking: | Blocked by: |
Description
This is correct,the 3 div color is red.
<div class="ac">aaaa bbb<div>
<div class="a c">aaaa bbb<div>
<div class="a b">aaaa bbb<div>
<script>
$(function(){
$('.a').filter('.b').css("color","red");
});
</script>
but i chang div sequence. This will has a error.the 2&3 div color is red.
<div class="ac">aaaa bbb<div> <div class="a b">aaaa bbb<div> <div class="a c">aaaa bbb<div>
i chang div sequence again. This will has a error.the all div color is red.
<div class="a b">aaaa bbb<div> <div class="ac">aaaa bbb<div> <div class="a c">aaaa bbb<div>
I use IE6.0 winxp sp2
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.
Note: See
TracTickets for help on using
tickets.

NO error,I have some thing wrong.