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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:37:40+00:00 2026-06-13T15:37:40+00:00

I have a textarea and it doesn’t hide using Firefox 12 but it does

  • 0

I have a textarea and it doesn’t hide using Firefox 12 but it does hide in IE9 and Chrome.

The textarea has a button that when I click this button it will automatically show the textarea.

here’s my code.

<div id="data">
    <div id="data-inner">
        <i>Loading...</i>
    </div>

    <fieldset id="standalone-data-set">

        <div>
            <textarea id="standalone-data" name="standalone-data"></textarea>
        </div>

        <div class="clearfix"-->
            <input id="save-data" class="data-button" type="button" value="Confirm" />
            <input id="cancel-data" class="data-button" type="button" value="Cancel" />
        </div>

    </fieldset>

    <input id="add-data" class="data-button" type="button" value="Add Data" />
</div>

Here’s my CSS code

#standalone-data-set {height: 0px; overflow: hidden;}
#standalone-data {margin: 0 !important; height: 200px !important; width: 880px !important;} input.data-button {font: 100%/25px Tahoma, Verdana, Trebuchet MS, Sans-Serif; float: left !important; margin: 15px 20px 0 0 !important; width: auto !important; padding: 0 20px 2px 20px; height: 25px;}
#add-data {float: none !important;}


<script language=javascript>
$('#save-data').click(function() {
var data = $('#standalone-data').val();
$('input[type=submit], input[type=button]').attr('disabled', 'disabled');
$.post($.getAjaxUrl('userAction', 'CreateRequestData', { 'requestDataID' : data.requestDataID }), { 'data' : data }, function(data) {
data = $.parseJSON(data);
if (data.error == true) {
alert(data.response);
} else {
$('#cancel-data').click();
$('#data-inner').getRequestData(data.requestID);
}
$('input[type=submit], input[type=button]').attr('disabled', '');
});
return false;
}); 


$('#cancel-data').click(function() {
if ($.client.os != 'an unknown OS') {
$('#standalone-data-set').animate({
height: '0px'
}, 100, function() {
$('#add-data').show();
});
return false;
} else {
$('textarea#standalone-data').val('');
}
});

$('#add-data').click(function() {
$('#add-data').hide();
$('#standalone-data-set').animate({
height: '290px'
}, 100, function() {
if (data.CEditor == undefined) {
data.CEditor = $('textarea#standalone-data').tinymce(data.EditorsConfig);
}
$('textarea#standalone-data').val('');
});
return false;
});  
</script>

Hope anyone can shed a solution on how to make the textarea hide. thanks a lot.

  • 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-13T15:37:41+00:00Added an answer on June 13, 2026 at 3:37 pm

    You can try to wrap textarea in a div and hide that div instead.

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

Sidebar

Related Questions

I have a textarea that I'm able to edit with the jeditable plugin but
I have a textarea tag that has text I want a user to edit.
I have a textarea that has tinyMCE applied to it when the dialog is
how facebook show textarea which does not have icon for draging at the bottom-right
I have a textarea that I might want to disable in certain conditions. I
I have a textarea on my page. It has this draggable corner which lets
I have a simple textarea which works in all browsers i.e. I can click
I have a little problem with jQuery: $('#form-submit').click(function () { $('#textarea, #name').removeClass('error-state').addClass('normal-state'); var myName
Autocomplete="off" on textarea fields doesn't seem to work as it does with input fields.
I have an html.TextArea helper that I'd like to set a default. @Html.TextAreaFor(model =>

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.