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
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
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
Hope this helps.