Hi this is a jquery question:
jquery
supposed i have this:
Because you have not iterated all the elements which has class 'select'. It always goes to the first element and prints the result. Put a loop to iterate all elements having class 'select'.