Question: I need to validate if the user has selected any one of the drop down in javascript or jquery. the function needs to get the

I need to validate if the user has selected any one of the drop down in javascript or jquery. the function needs to get the id name but it can be hard codded meaning the starting of all the id can be same but ending could differnt so that in the future i could add more dropdown

multiple drop down

by the selected value

write a function in jquery or javascript where it loops for the partial id of the dropdown list and checks the index value =0 and if it is then return true if not it should check the next id starting with the partial id. the function should check if any of the drop down is select.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!