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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:41:07+00:00 2026-05-30T18:41:07+00:00

My earlier question was highlight column as per slider’s single value Search specific column

  • 0

My earlier question was highlight column as per slider’s single value

Search specific column of table for highlight table data

Now I have slider with range like from 4-8 it should highlight. below is the code for same.

jQuery( "#svoltage-range" ).slider({
            orientation: "vertical",
            range:true,
            min: 2,
            max: 20,
            values: [ 2, 20 ],
            slide: function( event, ui ) {
                //jQuery( "#amount5" ).val( ui.value );
                jQuery( "#amount5" ).text( "" + ui.values[ 0 ] + " - " + ui.values[ 1 ] );
                var columnCol = jQuery("#amount5").parent().prevAll().length;
                // jQuery('#tableData tr.data').hide();
                console.log("low value-->" + ui.values[ 0 ]);
                console.log("high value-->" + ui.values[ 1 ]);
                // remove Classes
                jQuery('#tableData tr.data').each(function() {
                    jQuery(this).find('td:eq('+columnCol+')').removeClass("jquery-colorBG-highLight");  // add
                });

                jQuery('#tableData tr').each(function() {
                    var highlightTD_1 = jQuery(this).find('td:eq('+columnCol+')').filter(function() {
                         return jQuery(this).text() >= ui.values[ 0 ];
                    });
                    highlightTD_1.addClass("jquery-colorBG-highLight");

                    var highlightTD_2 = jQuery(this).find('td:eq('+columnCol+')').filter(function() {
                         return jQuery(this).text() <= ui.values[ 1 ];
                    });
                    highlightTD_2.addClass("jquery-colorBG-highLight");                 
                    //highlightTD.parent().show();
                });



            }
        });

But there might be some Issue that it highlight all the fields. How to make highlight only TD which fall in range.

Live URL

  • 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-30T18:41:09+00:00Added an answer on May 30, 2026 at 6:41 pm

    Your code take all the tds which their values are bigger than the min value and all the tds which their values are smaller than the max value,this mean all the tds.

    Change to this code:

                // remove Classes
                jQuery('#tableData tr.data').each(function() {
                    jQuery(this).find('td:eq('+columnCol+')').removeClass("jquery-colorBG-highLight"); 
                });
    
                //add classes
                jQuery('#tableData tr').each(function() {
                    var highlightTD_1 = jQuery(this).find('td:eq('+columnCol+')').filter(function() {
                         return jQuery(this).text() >= ui.values[ 0 ] && jQuery(this).text() <= ui.values[ 1 ];
                    });
                    highlightTD_1.addClass("jquery-colorBG-highLight");
                });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry to double my earlier question, but I thought to ask specific data which
Further to my earlier question. Now I have two different queries that work. The
Partially related to an earlier question of mine , I have a system in
Following on from my earlier question, I have decided to have a go at
As a follow-on to an earlier question about not reloading a huge, persistent table
Related to my earlier question (thanks for your response Cryo), I have a further
As a spin of of an earlier question, I have run into some problems
Following on from my earlier question: Manipulate Lucene query before performing search I've run
As mentioned in an earlier question , I have uncovered some style options that
In this earlier question , the OP asked for a data structure similar to

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.