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
Get step-by-step solutions from verified subject matter experts
