0
Answered

Find .koru-ul through javascript?

Mattias 5 months ago updated by Vitaly Ovchinnikov 4 months ago 5

Is it possible to access .koru-ul through JavaScript? 

Have tried for a while now with both javascript and jQuery but it seems impossible to find the ul-tag. 

Under review

There are several examples of finding Koru object in tutorials, what exactly is the problem you are trying to solve?

I want to get the width of the .koru-ul container (or .koru-li) so that I can run jquery-functions depending on its value. 

Have tried finding the elements by $('.koru-ul') and getElementsByClassName("koru-ul"). Both of these codesnippets find the elements I created in the template, but the ones created by koru it does not. 

Maybe you do the search before Koru creates it? Try doing this once the scene is loaded.

Well, of course I did.. :/

Problem solved,


Thank you!