Materialize Collapsible option does not work properly

Asked

Viewed 148 times

0

I am using the Materialize Framework to display a list.

inserir a descrição da imagem aqui

This list can be expanded, but only works after reloading the browser several times with CTRL + F5.

When I load directly into the HTML, it works, but when I load the list by Javascript, only reloading several times.

I use Jquery, Materialize and Google Maps API, I have removed the script from Google Maps but not solved.

Attempts

  • Have I tried loading the script randomly: script.js? Random=uniquid();
  • Use in-cache in html

I inspected the html element of the list and it loads all tags, including the log reports no errors.

I am using $(Document). ready(Function(){})

1 answer

0

In tests I performed, I realized that the statically added elements worked correctly, so I tried to add the command $('.collapsible').collapsible(); after insertion of the elements, by Javascript and worked properly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.