Skip to content
Advertisement

Tag: promise

Understanding Promise() for Controlling when Form Inputs are Displayed

I have certain form inputs that are only displayed depending on other input’s value. I am trying to control when inputs fadeOut() and fadeIn() with, I think, a promise() but it seems the call-stack still runs everything synchronously – maybe I am not configuring the promise correctly? Here is some pseudo code. The catch here is one of my inputs,

Advertisement