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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:27:36+00:00 2026-05-14T00:27:36+00:00

I have a table, has many rows. for example one of from rows(all rows

  • 0

I have a table, has many rows. for example one of from rows(all rows are same):

             <tr>
                <td>
                    <input type="text" />
                </td>
                <td>
                    <textarea cols="40" rows="3" ></textarea>
                </td>
                <td>
                    <select id="chbTypes11">
                        //options
                    </select>
                </td>
                <td>
                    <input type="text" />
                </td>
                <td>
                    <input type="checkbox" />
                </td>
            </tr>

select element is disabled by default.
How to determine, input value has value? for enabling select element in this row

  • 1 1 Answer
  • 3 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-14T00:27:36+00:00Added an answer on May 14, 2026 at 12:27 am

    If by ‘input’ you mean any kind of input element other than a select, then:

    $("tr input, tr textarea").change(function() {
        var $select = $(this).closest("tr")
                             .find("td > select");
        $select.attr("disabled", !($.trim(this.value).length > 0));
    });
    
    // IE and checkbox change events don't like each other
    $("tr :checkbox").click(function() {
        $(this).closest("tr").find("td > select")
                             .attr("disabled", !$(this).is(":checked"));
    });
    

    If you’re only referring to the textbox, just change the selector to $("tr input:text")

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

Sidebar

Related Questions

I have a table, has many rows. for example one of from rows(all rows
I have two rows from a table that has many columns. How do I
I have this kind of table, it has many rows and each row has
I have a table with many rows and each row has select lists. Something
I have a table which has several one to many relationships with other tables.
I have a DB with many tables and one of the table has fields:
I have a web page which has many divs (listed like table rows), and
i have a table which has many fields but i want to get count
I have a table within my database that has many records, some records share
I have a table: Order Detail. An Order has many details, in my case

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.