M
M
Mr_Romanov2017-02-09 17:33:39
UIkit
Mr_Romanov, 2017-02-09 17:33:39

Using JS in uikit, how to call?

Hey!
I'm studying uikit, I ran into a problem of not understanding the documentation on linking the styles framework with scripts.
Example.

<input id="name" class="uk-input uk-form-width-medium" type="text" placeholder="disabled" value="disabled" disabled>

How can I disable disabled using the framework?
Well, let's say by clicking on this input I want to remove disabled.
The documentation has:
Initialization
UIkit.formCustom(element, options);

And that's it!
Well logically I do:
UIkit.formCustom('#name', 'enable');
iiii nothing happens

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr_Romanov, 2017-02-09
@Mr_Romanov

Well, in short $( "#name" ).prop( "disabled", false);
This is not a uikit of course but a solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question