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/

  • محمد كبير كون

    nice tip! the second one is not working for me though…

Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.