i have some content in the div and i need to append some data at the top of the previous content inside that div by moving the remaining content down after a jquery function call.
thanks in advance
i have some content in the div and i need to append some data at the top of the previous content inside that div by moving the remaining content down after a jquery function call.
thanks in advance
Use the prepend command: http://api.jquery.com/prepend/
$('#yourDivId').prepend(yourContent);
if you are using ajax call and want to set content at the top of div simply use $('#divId').(AjaxContent);
This will work.