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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:12:41+00:00 2026-06-01T02:12:41+00:00

I have a table in HTML which has three columns i.e Error – User

  • 0

I have a table in HTML which has three columns

i.e Error – User Input – Correct Format

When I hover over the table the rows highlight

\CSS

table tr:hover                
 { 
    font-weight: bolder; 
    color:black;
 }

When I hover and do that I want to text also to be highlighted in my text area

i.e if I hover over the first row I want the text in User Input column to also be bold in the text area so the user can see where the error is

i.e Error – User Input – Correct Format
Flight ID 12 [0-9]{3}

So as I hover over that row I want it to search the text area for 12 and bolden every 12 it finds and same for other rowns.

SUMMARY

what ever is in the USER INPUT column bolden in text area if found

http://jsfiddle.net/EZj9T/ so far what I have is this so when u hover over a row in the header one column aswell as boldening the text in there but to also bolden the text found in the text area

  • 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-01T02:12:42+00:00Added an answer on June 1, 2026 at 2:12 am

    I don’t think you can add markup (such as a STRONG tag) in a textarea. You are also quite limited to what visual styles you can apply.

    If you have a DIV instead of a textarea (like a contenteditable), you would do something like:

    $('tr').hover(function() {
        var ta = $(this).find('.textarea');
        ta.html(ta.html().replace(/12/g,'<strong>12</strong>'));
    });
    

    UPDATE

    Here is an example of what I think you are trying to do: http://jsfiddle.net/EZj9T/4/

    You need to use a contenteditable DIV to be able to highlight words using markup inside, textarea won’t allow it.

    $('tr').hover(function() {
        var text = [];
        $.each($(this).find('td'), function() {
            text.push($.trim($(this).text()));
        });
        highlight(text);
    },function() {
        highlight(null);
    });
    
    var area = $('div[contenteditable]');
    
    function highlight(what) {
        area.html(area.html().replace(/<strong\/?>/g,''));
        $.each(what || [], function(i, val) {
            area.html(area.html().replace(new RegExp(val,'gi'),'<strong>'+val+'</strong>'));
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a html file which has a huge table with 4 columns and
I have a simple HTML form which consists of radio buttons where user has
I have a table which has columns of data that contain status. Two example
I have an html table which i bind data dynamically on the server side
I have a html table in which each line ( <tr> ) represents a
I have the following html structure (which is generated and I can't change): <table
I have a repeater control outputting some HTML. I want a table which outputs
I have an HTML table with several columns and I need to implement a
I currently have a table that is 17 columns wide and has 30 records.
I have a simple php page which outputs a table (which has been created

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.