How to set top position using jquery February 20, 2023 by Tarik You can use CSS to do the trick: $("#yourElement").css({ top: '100px' });