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:

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

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

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