Lunarpages Web Hosting Forum

Author Topic: How can I do that using html?  (Read 2890 times)

Offline jiwngee

  • Pong! (the videogame) Master
  • *****
  • Posts: 26
How can I do that using html?
« on: December 07, 2011, 01:10:41 AM »
I used checkboxes to list the audio files. I want to select one or more of the audio files by ticking in checkbox and play those selected using a button. How can I do that using html?

I see that many music sites use this functionality, but not sure how to code this using html? Can someone help?

Offline lillianabe

  • Spaceship Navigator
  • *****
  • Posts: 91
Re: How can I do that using html?
« Reply #1 on: April 23, 2012, 03:00:45 AM »
First you need to group all those check boxes in one group or need to use check box list control which allow you to add as many check boxes as you wish and can operate for loop for individual and enable the multi selection,. Now on the function of a play button, create a temporary array which contains path to those files and use that array as a play list.
« Last Edit: September 07, 2012, 05:14:50 AM by lillianabe »