Вопрос:

Append function doesn't work on IE

javascript jquery html function append

253 просмотра

1 ответ

1 Репутация автора

I don't know why this code isn't working on IE:

storyEl.append(storyImageEl);
storyEl.append(storyTitleEl);
storyEl.append(storyAuthorEl);
storyEl.append(storyContentEl);
storyContainer.append(storyEl);
return storyContainer;
storyEl.append(shareButton);

I am not sure if they are the issues, but essentially on my page: http://soulrelicsmuseum.me/Stories.html. These are completely not showing on IE. Would really appreciate it if someone could point me to the right direction. I tried adding var on before storyE1 but didn't work.

Автор: Van Источник Размещён: 10.04.2017 06:38

Ответы (1)


-1 плюса

1780 Репутация автора

You need to add your arrangeStories(); in jquery.ready. When your code is ready to run, DOM is still not ready.

$(function(){
  arrangeStories();
})
Автор: serdar.sanri Размещён: 10.04.2017 06:42
Вопросы из категории :
32x32