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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:08:12+00:00 2026-05-17T20:08:12+00:00

I have a form with multiple rows of text boxes. I use jquery .show()

  • 0

I have a form with multiple rows of text boxes. I use jquery .show() and .hide() to dynamically add or remove a textbox.

In my codebehind, I retrieve a myReport object and based on the number of entries, I want to display or hide the right number of text boxes.

I can use .visible = true / false but that removes the element from the page so that the jquery functions no longer work.

I tried using

.class.add('visibility', 'hidden')

but even with this, the jquery .show() function fails to make the textbox visible.

Is there a way I can call a jquery function from code behind or an attribute that I can add to a text box to make it invisible and still work with .show() method

  • 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-17T20:08:13+00:00Added an answer on May 17, 2026 at 8:08 pm
    $("yourtextboxselector").css({'display': 'none'});
    

    You can check the visibility using :visible

    $("yourtextboxselector").is(":visible");
    

    You can set the display attribute in C# also

    txtBox.Style["display"] = "none";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form where at some point you can add multiple rows of
I have a table with multiple rows which contain form inputs (checkboxes, text, dropdowns).
I have form with multiple input type=radio with text next to them. I want
I have a Form with multiple different controls like ComboBox , TextBox and CheckBox
I have a form with multiple textboxes which are created dynamically, now all these
I have a form with multiple rows of checkboxes, each with a specific id,
I have a table with multiple rows. Each row is a form. I want
If I have a form with fields like this. THERE WILL BE MULTIPLE ROWS
I have a form where users can create unlimited number of rows (using jquery-
I have a form with multiple dropdowns consisting of multiple values. I'm trying 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.