Jump to content
php.lv forumi

Visu klašu, izņemot vienas, selektošana jQuery


mandarīnpīle

Recommended Posts

Ir 10 objekti ar klasi ".active_class." Vienam no tiem ir id "#special_id".

Nepieciešams izpildīt animāciju uz visiem objektiem ar klasi ".active_class", kuru id NAV "#special_id".

 

$('.active_class').animate({                   // JA objekta id NAV #special_ID
      backgroundColor: inactive_color_code
});

 

Kā?

Vai tam selektoram var kaut kā piekabināt if else konstrukciju?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...