+ Start a Discussion
JayeeJayee 

lightning:select event

Hi

i would like to modify a form when i choose a pick value which returns input field show up and hidden event
How could this be enable? i cant find where i sort this thing out.
Best Answer chosen by Jayee
Jayant DasJayant Das
You will need to handle the changed value in the controller function, something as below. Then based on the value that you receive, you can perform operations as desired.
cmp.find("selectItem").get("v.value").

 

All Answers

Jayant DasJayant Das
Are you using onChange action on lightning:select?
JayeeJayee
Yes for now! but i dont exactly know modify when i pick a different value for ex if i choose a pick value "Blue" in lightning input form
  <option id="blue" value="blue"> 
choose blue input field show
choose red -> blue+red input field show 
choose yellow ->blue+Red+yellow input field show
                      
Jayant DasJayant Das
You will need to handle the changed value in the controller function, something as below. Then based on the value that you receive, you can perform operations as desired.
cmp.find("selectItem").get("v.value").

 
This was selected as the best answer