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

  • Home
  • SEARCH
  • 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 8139701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:55:08+00:00 2026-06-06T11:55:08+00:00

In my html table I have two row, first row having no css but

  • 0

In my html table I have two row, first row having no css but second row having cssselected to tr.
I have to remove focus if user clicks on that tr or td with cssselected.

 <table id="myTable">           
            <tr>
                <td>
                    cell4
                </td>
                <td>
                    cell5
                </td>
                <td>
                    cell6
                </td>
            </tr>
            <tr class="cssselected">
                <td class="cssselected">
                    cell 12
                </td>
                <td class="cssselected">
                    cell8
                </td>
                <td class="cssselected" rowspan="2">
                    cell8
                </td>
            </tr>
            <tr class="cssselected">
                <td class="cssselected">
                    cell9
                </td>
                <td class="cssselected">
                    cell10
                </td>
            </tr>
        </table>
  • 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-06-06T11:55:09+00:00Added an answer on June 6, 2026 at 11:55 am

    If to remove focus means removing the cssselected from that row (i say this because focus is a term you use with input tags):

    $('tr').click(function() {
        // If the clicked tr has the class cssselected
        if($(this).hasClass('cssselected')){
            // Remove the class cssselected 
            // from all the descendant td and from the clicked tr
            $('td', this).andSelf().removeClass('cssselected');
        }
    });
    

    fiddle here http://jsfiddle.net/97HVf/

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

Sidebar

Related Questions

I have a HTML table where each row has two columns. First column is
I have an html table For some reason, in the second row, the two
how remove html table rows after 2nd row? if in table have 5 row,
I have two questions regarding to html table layout. First I will provide some
I have an HTML table 2x2. In that table, I want the first row
if in html table have 5 row, 1 and 2 are safe, 3,4,5 must
I have a HTML table with a column per row with this html code
I'm running a query to have two columns in an html table. c.course_unit m.score
I have an HTML table which is styled using CSS. The table is composed
I have a table of one row with two columns.I want to align content

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.