Show() N elements

Show() N elements

Hello,

I have a PHP loop, creating a <div>, ten times, and a <select> with option from 1 to 10.
What i'd like to do : when I select the <option value="N"> in my <select>, i'd like the N first <div> to appear, and hide the others.

How I can do this in a clean jquery way ?