Z
Z
zlFast2016-04-12 15:44:02
JavaScript
zlFast, 2016-04-12 15:44:02

How to do this on the backbone?

There is a form divided into 3 steps, under each step there is a button "next" or "next" and "back". So, what is the right way to do this using the backbone? Or is it necessary to do this with jquery (hide()/show())?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
stasov1, 2016-04-12
@stasov1

It's easier on jquery, but it's possible without libs and frameworks, it's not difficult, let's say you create an active class for a popup that will be visible, the id of the active popup, and by clicking "next / back" you check this id and switch the popup.

N
Niomin, 2016-04-12
@Niomin

Regardless of the framework / its absence, the model should be done (apparently, one of the three). When you click on the button to change it. Subscribe to its change, view remake.
Backbone in this case is good because it allows you to subscribe :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question