Z
Z
zlFast2016-04-14 16:59:51
JavaScript
zlFast, 2016-04-14 16:59:51

How to make a button active / inactive in the backbone depending on the condition?

That is, there is a button on the page with the attribute 'disabled', you need to make it active after certain conditions are met, for example, form fields are filled and checkboxes are selected. Everything is simple in angular, just write ng-disabled="anyFunc()", but in backbone it's not so obvious.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
# artur #, 2016-04-14
@zlFast

I think it will help https://gist.github.com/derickbailey/1027710

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question