JavaScript
Article
By Sam Deering

jQuery bring element to front of view

By Sam Deering

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/

--ADVERTISEMENT--

Recommended
Sponsors
The most important and interesting stories in tech. Straight to your inbox, daily. Get Versioning.
Login or Create Account to Comment
Login Create Account