I'm trying to figure out how to change the z-index
CSS attribute of the <footer>
element when the <select>
is open in TypeScript (Angular 10). The current z-index
value for the footer is set to 9998;
, but I want it to be 0;
. This adjustment is necessary because when the select dropdown is opened, the options appear under the footer and make it difficult for the user to make a selection.
$('.test').on('click', () => {
$('footer').css('z-index', '0');
})
<select
class="test"
placeholder="select an option"
formControlname="bank">
<option> 1 </option>
<option> 2 </option>
<option> 3 </option>
<option> 4 </option>
</select>