General discussion

Locked

Songs Rating Javascript & VBScript

By mazizh75 ·
I have 50 songs in a Listbox say in ListBox1 and I want to ask User to select only 20 songs from these 50 songs and wherever he/she click/select any song from ListBox1 that song should delete from ListBox1 and add in another listbox say in ListBox2 , if before 20 songs if he/she try to submit the form , system should popup alert saying "you cannot submit if you didn't rate min 20 songs".

If it is possible to add one more feature when any user delete any song from ListBox2 it should again come back in ListBox1 and if user want to add new song from ListBox1 in place of deleted song the system put new song on same position in ListBox2 from where user has deleted the song.

After finishing 20 songs rating I want to save ListBox2 data into database through VBScript.

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by iht4 In reply to Songs Rating Javascript & ...

Need to use Javascript form Option constuctor to work for onclick event.

see http://www.w3schools.com/js/tryit.asp?filename=tryjs_putdropdown for more info on how this can be done.

Although I would read up on arrays, because to achieve the positioning of them you will need to get good at working with them!!

hope this helps
Iain

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums