-1

I have a slideshow that gives 2 elements that are shown a [aria-hidden=true]. I need the container to scale with the 2 elements that have [aria-hidden=true].

Does anyone know how to script that in Jquery?

Thanks in advance

1 Answers1

1

I am not 100% sure what you are asking here. If possible, please provide some sample code.

However, maybe something like this would work:

$('[aria-hidden="true"]')
    .parent()
    .css({
        height: '100%'
});

Otherwise, here are a few stackoverflow articles that might point you in the right direction:

jQuery: Get height of hidden element in jQuery

Using jQuery to adjust a parent element's height to match it's visible child's height

how to overwrite css height set by jquery/javascript?

Hope this helps.

Community
  • 1
  • 1
cfnerd
  • 3,658
  • 12
  • 32
  • 44