Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 8 years ago

#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:
Blocked by: Blocking:

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 (2)

comment:1 Changed 13 years ago by pharaoh

NO error,I have some thing wrong.

comment:2 Changed 13 years ago by john

Resolution: invalid
Status: newclosed

Ok, glad it works for you, then.

Note: See TracTickets for help on using tickets.