The script doesn't work Javascript. (.load) Please help?

Good day. Asking for help can't understand. Is there a website which loads the information into the div with id #load_content from another page using the script.
$('a#link_01').click(function(){
$('#ferst_content').css('display','none');
 $('#load_content').load('it/index.html #it_01');
 return false;
 });

When you load the div with the id #it_01 loaded but with CSS display:none and not visible. I'm not a programmer but really need to understand how when you download a div to specify the CSS display:block
Thanks for the help.
September 19th 19 at 00:18
2 answers
September 19th 19 at 00:20
Solution
From .load there are optional parameters, if after the address specify a function, it will be executed after the block is downloaded and inserted. Something like this:

$('a#link_01').click(function () {
 $('#ferst_content').css('display', 'none');
 $('#load_content').load('it/index.html #it_01', function () {
 $('#it_01').css('display', 'block');
});
 return false;
});


Read the documentation, everything is there:)
Constantine Kytmanov thank you very much everything works. You live and learn ! - jerrod.Kuphal commented on September 19th 19 at 00:23
September 19th 19 at 00:22
No box DIV #load_content visible, but the div #it_01 it is hidden and not shown 202a0c9eb6e84bd89683eeee4f0af411.JPG
well then $('div#it01').css('display','block'); - jerrod.Kuphal commented on September 19th 19 at 00:25
Does not help I tried already !!! - King_Seng commented on September 19th 19 at 00:28
: throw off on soap a piece of code or a demo server link, I don't know what the problem is - jerrod.Kuphal commented on September 19th 19 at 00:31

Find more questions by tags JavaScript