🤯 50% Off! 700+ courses, assessments, and books

jQuery bring element to front of view

Sam Deering
Share

Quick jquery/css snippets to input expand infront of other inputs (using z-index to position an element infont of another element).

This is primarily a CSS thing, not a jQuery thing (though you can use jQuery to modify the css), like so:

$('element').css('zIndex', 9999);

Or, absolute positioning will bring something to the top:

$('element').css('position', 'absolute');

also see: https://jsfiddle.net/Town/NMGTp/25/