How to set the second dropdown box only after the first one is set? [on hold]

206
April 26, 2019, at 3:50 PM

I'm working on a project that is using the select2 Jquery. I have two drop-down boxes. The second box's options are depends on the first box's selection. So now i want to manually set the value in both boxes.

How can I ensure that the second drop-down box value will only be set when the first drop down box has value and which filtered the second box's options?

Rent Charter Buses Company
READ ALSO
Passing prop to another component and render on the view

Passing prop to another component and render on the view

I have a question about how to pass the props to Form componentRight now, the SideBar component list all the link, and everything I click one of the link, I can console

187
How to modify this JSON to another JSON with JavaScript?

How to modify this JSON to another JSON with JavaScript?

help please, I need to transform this json:

154
issue with set timeinterval in reactjs

issue with set timeinterval in reactjs

I tried to call a function in set time inter val for every 5 seconds but i throws errors in TypeError: thisintialState is not a function

193
How to find a number which is the result of added which elements in the array(Javascript)?

How to find a number which is the result of added which elements in the array(Javascript)?

For example, there is an array arr[1,2,4,8,16,32,64,128], each element represents a permissionThis is the number used for permission assignment

162