Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26322
| From | grzessiek <grzesiek76@poczta.onet.pl> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | ajax loading content |
| Date | 2014-12-13 20:15 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <m6i37b$hi5$1@speranza.aioe.org> (permalink) |
hey,
I load HTML using jquery .load().
In this HTML loaded, I have a div with scroll (CSS overflow: auto).
Below that div I have a simple piece of code.
Why it does not work:
$(document).ready(function(){
$('#ajaxLoadedDiv').scrollTop(100);
});
and it works:
$(document).ready(function(){
$('#ajaxLoadedDiv').html('some content');
});
Thanks,
g.
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
ajax loading content grzessiek <grzesiek76@poczta.onet.pl> - 2014-12-13 20:15 +0100 Re: ajax loading content "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-12-13 20:50 +0100 Re: ajax loading content JJ <jj4public@vfemail.net> - 2014-12-14 05:38 +0700
csiph-web