Bug Tracker

Modify

Ticket #1548 (closed bug: invalid)

Opened 6 years ago

Last modified 14 months ago

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

comment:1 Changed 6 years ago by pharaoh

NO error,I have some thing wrong.

comment:2 Changed 6 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

Ok, glad it works for you, then.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.