You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to make train system with two dropdowns. First for starting destionation and second for end dest, Which are in MySql. I have two Get Function and they work. The problem is when i select option in first dropdown, second dropdown automatically select first option in field but it cant be selected. I need to choоse another option and then to select the first again (in second dropdown). And if in second dropdwon is only one option it cant be selected at all. I want to something like placeholder and every time first dropdwn is selected, second dropdown to be "Choose Destionation " instead of City which is already auto selected and cant be choosen.
I try to set default option, if else statement and soo much but no one worked.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I try to make train system with two dropdowns. First for starting destionation and second for end dest, Which are in MySql. I have two Get Function and they work. The problem is when i select option in first dropdown, second dropdown automatically select first option in field but it cant be selected. I need to choоse another option and then to select the first again (in second dropdown). And if in second dropdwon is only one option it cant be selected at all. I want to something like placeholder and every time first dropdwn is selected, second dropdown to be "Choose Destionation " instead of City which is already auto selected and cant be choosen.
I try to set default option, if else statement and soo much but no one worked.
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions