stackoverflowの私の最初の投稿、ので、私はそれを修正することができます何かが間違っている場合は教えてください、ありがとう。
私は私のウェブサイトに次のコードを持っています...
<table id="fruits">
<tbody>
<tr class="file" id="tr-file">
<td class="name" id="id1">NAME-OF-FILE1</td>
<td class="name" id="id2">NAME-OF-FILE2</td>
<td class="name" id="id3">NAME-OF-FILE3</td>
<td class="name" id="id4">NAME-OF-FILE4</td>
</tr>
</tbody>
</table>
I know I can zip the files in cpanel or upload the files zipped and put it as a link in the page...
But
I want the visitor to choose which files they want to download, no force them to download all 4 files. So I searched in Google and found a useful post. (THE PROBLEM IS THAT I JUST KNOW THE BASIC OF HTML, I dont understand what he wrote)
I want the visitor to select multiples files from <table id="fruits">
.
Example: http://jsfiddle.net/dn3L7/
<table id="fruits">
<tbody>
<tr class="file" id="tr-file">
<input type"checkbox" id="idc1"> <td class="name" id="id1">NAME-OF-FILE1</td>
<input type"checkbox" id="idc2"> <td class="name" id="id2">NAME-OF-FILE2</td>
<input type"checkbox" id="idc3"> <td class="name" id="id3">NAME-OF-FILE3</td>
<input type"checkbox" id="idc4"> <input type"checkbox" id=""idc1> <td class="name" id="id4">NAME-OF-FILE4</td>
</tr>
</tbody>
</table>
When they finish checking the files they will be able to click a button to download the zip file.