bungpeng Posted February 14, 2003 Posted February 14, 2003 Sorry to post javascript question here, because I don't know where should I post... May I know how to change the listbox items sorting using Javascript? For examples: My listbox got 2 items "A", "B", how to change it to "B", "A"? Quote
bungpeng Posted February 14, 2003 Author Posted February 14, 2003 Since nobody answer my question, I was solve it using stupid method: I remove all the items in listbox and adding them again in listbox according the new sorting. It can be done but request more process, if any expert got a better solution, please let me know... Quote
Moderators Robby Posted February 14, 2003 Moderators Posted February 14, 2003 Where is the data coming from, (before it goes into the listbox) Quote Visit...Bassic Software
bungpeng Posted February 14, 2003 Author Posted February 14, 2003 Data coming from database. Actually I insert data to listbox from database, and let user maintain the sorting order ( one "move Up" and "move Down" buttons ) Quote
Moderators Robby Posted February 14, 2003 Moderators Posted February 14, 2003 Hmm, short of using an array and sorting it that way I don't know how to do it on the client. Sorry. Hold on. Is this an ASP Listbox? Quote Visit...Bassic Software
bungpeng Posted February 16, 2003 Author Posted February 16, 2003 No, it is only normal HTML and Javascript Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.