I have two HTML selects in a form. The first is called available and contains several options:
available
.... function selectAllOptions(obj) { if (!hasOptions(obj)) { return; } for (var i=0; i