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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:28:45+00:00 2026-06-16T16:28:45+00:00

Got a Jsfiddle where I have a textarea which fills a table cell. But

  • 0

Got a Jsfiddle where I have a textarea which fills a table cell. But what I need help with is can somebody create a function in the fiddle where the user expands or decrease the size of the table cell. I want to test my css to see if the textarea can fill the textarea if the table cell height is increased or decreased?

Here is the fiddle: http://jsfiddle.net/BpWes/1/

Below is the code from fiddle:

HTML:

        <table id="tbl">
        <tr>
        <th>Question</th>
        </tr>
        <tr>
        <td class="question">
         <textarea class="textAreaQuestion" id="mainTextarea"  name="questionText"></textarea>
            </td>
        </tr>
        </table>

Jquery:

$('textarea').css('background','#EAEAEA');

CSS:

td{ vertical-align:top}


#tbl{
border:1;
height:250px;    
}

.question{     
    border:1px black solid;
    padding: 0;
    height:100%
}

.textAreaQuestion{
    width:100%;

    height:100%;
    border:0;
    padding:0;
    font-size:100%;  

    margin:0;

}

UPDATE:

HTML:

 <table id="tbl">
        <tr>
        <th>Question</th>
        </tr>
        <tr>
            <td class="question">
<div class="divheight">
    <textarea class="textAreaQuestion" id="mainTextarea"  name="questionText"></textarea>
                </div>
            </td>
        </tr>
        </table>    

CSS:

.question{     

        border:1px black solid;
        padding: 0;
    }

    .divheight{
    height:100%
    }
  • 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-16T16:28:46+00:00Added an answer on June 16, 2026 at 4:28 pm

    Please check this fiddle, whether it solves your problem.

    var cell = $('td.question');
    
    $('.increase').click(function(){
        cell.height(cell.height()+20);
    });
    $('.decrease').click(function(){
        cell.height(cell.height()-20);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got problem with initialization of application. I create jsfiddle which simply works on
I have got show|hide script. It work's good but I need to modify html
http://jsfiddle.net/LEARy/ In my table cell I've got an unordered list floated to the left,
I have got an example here: http://jsfiddle.net/cByhZ/ As you can see the buttons value
This is what I got: http://jsfiddle.net/hashie5/vk6rZ/ (don't mind the layout) The first table is
Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need
I've got this jsfiddle set up with my issue: http://jsfiddle.net/7MjN6/ As you can see,
I have created a JSFiddle to see how much data I can push into
I have got Eclipse to generate a Basic android Hello World app, But it
I have this code: http://jsfiddle.net/gk5pV/8/ It's function is to add a td value 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.