I
I
ILoveYAnny2017-04-17 14:12:57
JavaScript
ILoveYAnny, 2017-04-17 14:12:57

How to solve modal window call in UIkit 3 on JS?

Hello, I'm trying to call a modal window Everything is fine, but when I try to call a window on document.ready, I get the following
UIkit.modal("#modal").show();

Uncaught TypeError: Cannot read property 'css' of undefined

This is a call to document.ready in the most recent included script. What could it be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ILoveYAnny, 2017-04-17
@ILoveYAnny

function showModal() {
  UIkit.modal("#modal").show();
}
setTimeout(showModal, 1000);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question