Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 388513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:46:37+00:00 2026-05-12T15:46:37+00:00

I have two in a table with ids row_26 and notificationrow_26. I want to

  • 0

I have two in a table with ids row_26 and notificationrow_26.

I want to highlight row_26. So I use either

var deviceUID = 26;
$("#row_" + deviceUID).effect("highlight", {}, 3000);       

OR

$("tr[id^='row_"+deviceUID+"']").effect("highlight", {}, 3000);

but when I do this. It also highlights the notificationrow_26 . Also the highlight does not work properly on notificationrow_26. It does not change its color back to original.

Am I missing something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:46:37+00:00Added an answer on May 12, 2026 at 3:46 pm

    Both of those selectors work for me to select the single element row_26, is that not what you’re trying to do? If it is, there may be a problem elsewhere in your code that you haven’t included.

    [id^=row_26] would also match ids like row_260, however, which is probably not what you want.

    If you wanted to match (anything)row_26 to catch both the row and the notificationrow you need an end-of-attribute selector instead of start-of-attribute: [id$=row_26].

    [Aside: however if performance is an issue, it is faster to just use two separate selectors, #row_26 and #notificationrow_26, which allows jQuery to use getElementById instead of having to search each element’s id. Or you can even call it yourself:

    $(document.getElementById('row_'+deviceUID)).effect(...);
    $(document.getElementById('notificationrow_'+deviceUID)).effect(...);
    

    This looks less ‘jQuery-like’, but it’s faster and you don’t have to worry about ‘special’ characters in the attribute value that don’t fit in a selector.]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two in a table with ids row_26 and notificationrow_26. notificationrow_26 is dynamically
I have two table emptable1(empid,status) emptable2(empid,week) i want to select all the empid whose
I have two table first is TABLE_SUBJECT and second is TABLE_CHAPTER.Now i want to
I have two tables, one of which matches ids to ratings and one of
I have two tables in Sql Server, one containing IDs for files and the
I have two table views, when user clicks one cell of the first, second
I have two table cells, with dynamic content. Table cell one works fine, when
I have two table. One table hold key column and xml column. Other table
I have two table masterTbl and detailTbl which structure is given below... --PRIMARY TABLE
I have two table like this table_CN (_id, name, phone, favorite, title) table_EN (_id,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.