@Supot_Punchuen for dynamizing the selector have a look here:
for retrieving the content of the drop down to find out what is inside () we can use find children