I was wondering how I’d go about having a select box with a height of perhaps 4 or 5, with an up and down arrow next to it to order the entries? Thing is, I need to draw the entries from a database with PHP, order them with the box, then submit them back to the database. So it can’t just be an aesthetic change, its got to actually change the ID of them? Is this possible?
Cheers,
BlackWraith
~EDIT~
This is the code I want to use, I just want to be able to rearrange the entries and record the new order of the entries.
<select size="4">
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
<option value='4'>4</option>
<option value='5'>5</option>
<option value='6'>6</option>
<option value='7'>7</option>
</select>
<br>
<br>
<input type="button" value="Up">
<br>
<input type="button" value="Down">
You can do it a little more fancy using the ready-made jQuery UI Sortable control: http://jqueryui.com/demos/sortable/