shibby1011ph
03-24-2005, 08:11 AM
i have a combo box filled with employee names. the user can select a name and physically move that name to the top of the list. so i guess, i would have to use dhtml. but i don't know where to begin. in the meantime, i made 2 buttons, up and down, with respective functions. can anybody give me any idea how to go about this dilemma? i'm a bit familiar with layers, divs, spans but i don't have a clue on the ff :
1) how to position a layer in the exact place where the user selected a name.
2) manipulate the layer's text field. i will keep on replacing the employee name in the layer's text field.
given this code :
function manualSort(personList){
var personName = personList.options[personList.selectedIndex].value;
///-----after this i don't know what to do next
}
<select name="personList" multiple onclick="manualSort(document.myForm.personList);">
blah blah
</select>
pls help!
1) how to position a layer in the exact place where the user selected a name.
2) manipulate the layer's text field. i will keep on replacing the employee name in the layer's text field.
given this code :
function manualSort(personList){
var personName = personList.options[personList.selectedIndex].value;
///-----after this i don't know what to do next
}
<select name="personList" multiple onclick="manualSort(document.myForm.personList);">
blah blah
</select>
pls help!