0

I have a CSS class named .co_dcrTable_Header with the following CSS:

.co_dcrTable_Header {
    color: #212121;
    display: block;
    max-height: 60px;
    overflow: hidden;
    padding: 2px 0; 
}

Is there a way to remove the overflow property with jQuery?

3
  • $(".co_dcrTable_Header").css("overflow","whateverYouWantItToBe"); (leave blank to erase the property) should work Commented Jun 19, 2014 at 20:56
  • possible duplicate of Remove CSS Attribute with jQuery Commented Jun 19, 2014 at 21:00
  • Do you want to remove the property from the class, or from the elements selected by the class? Commented Jun 19, 2014 at 21:03

2 Answers 2

2

You need to select the elements with the class assigned, and set the overflow value to something other than hidden. Blank will remove it completely I think.

$('.co_dcrTable_Header').css('overflow', '');
Sign up to request clarification or add additional context in comments.

Comments

0

Try this:

$('.co_dcrTable_Header').css('overflow', 'visible');

You can set the property to be empty or any of the below:

visible, hidden, scroll, auto, initial, inherit

Bear in mind that visible is the default property.

1 Comment

This is not removing, This is overwriting. And is not a n answer to this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.