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 3213202
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:55:04+00:00 2026-05-17T14:55:04+00:00

An application that I am building uses a large table with data input fields

  • 0

An application that I am building uses a large table with data input fields to record data. I need to give the user a visual clue as to what table row they are on to help them navigate the form.

Currently I have

onFocus="HighlightTableRow()"

on a dropdown list. When a user clicks or tabs to this form element, the parent table row should highlight. So, here’s the function that gets called onFocus:

function HighlightTableRow(){  
  $(this).parent("tr").addClass('RowHighlight');  
  //alert($(this));  
}

Two problems:

  1. When that row is not in use (form element NOT onFocus) then I need to .removeClass(‘RowHighlight’). Not sure how to do that.
  2. I can’t seem to get the selector right. The alert that I commented out will fire, but nothing happens to the style of the ‘tr’ element.

Any help appreciated. Thanks!

  • 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-17T14:55:05+00:00Added an answer on May 17, 2026 at 2:55 pm
    <select name="ContactMade[]" id="ContactMade">
    

    Javascript:

    $("#ContactMade").focus(function() {
        $(this).closest("tr").addClass('RowHighlight');
    })
    .blur(function() {
        $(this).closest("tr").removeClass('RowHighlight');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a large Java application that uses multiple pop-up windows. Some of these
I'm building an application that uses an elaborate API to fetch data from Youtube,
I'm building a facebook iFrame application that uses facebook comments. When a user leaves
I'm building a rich web application that uses a lot of data. When I'm
I have an existing application that uses Active Record for its data retrieval. It's
I'm building an application that uses a WCF client to retrieve data from my
I'm building an application that uses an UIScrollView. I need to detect when the
I'm building a Django application that uses MongoDB and MongoEngine to store data. To
I am building an android application that uses several third party libraries. I have
I am building a C++ application that uses Intel's IPP library. This library is

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.