Accessing dynamically generated bulk of (one for each row of table) <select> controls using jquery
<pre><code>&lt;script id="template-download" type="text/x-jquery-tmpl"&gt;

&lt;tr class="template-download{{if error}} ui-state-error{{/if}}"&gt;
    {{if error}}
        &lt;td&gt;&lt;/td&gt;
        &lt;td class="name"&gt;${name}&lt;/td&gt;
        &lt;td class="size"&gt;${sizef}&lt;/td&gt;
        &lt;td class="error" colspan="2"&gt;Error:
            {{if error === 1}}File exceeds upload_max_filesize (php.ini directive)
            {{else error === 2}}File exceeds MAX_FILE_SIZE (HTML form directive)
            {{else error === 3}}File was only partially uploaded
            {{else error === 4}}No File was uploaded
            {{else error === 5}}Missing a temporary folder
            {{else error === 6}}Failed to write file to disk
            {{else error === 7}}File upload stopped by extension
            {{else error === 'maxFileSize'}}File is too big
            {{else error === 'minFileSize'}}File is too small
            {{else error === 'acceptFileTypes'}}Filetype not allowed
            {{else error === 'maxNumberOfFiles'}}Max number of files exceeded
            {{else error === 'uploadedBytes'}}Uploaded bytes exceed file size
            {{else error === 'emptyResult'}}Empty file upload result
            {{else}}${error}
            {{/if}}
        &lt;/td&gt;
    {{else}}
        &lt;td class="name"&gt;
            &lt;label style="color:Black;"&gt;${name}&lt;/label&gt;
        &lt;/td&gt;
        &lt;td class="size"&gt;${sizef}&lt;/td&gt;
        &lt;td colspan="2"&gt;&lt;/td&gt;
    {{/if}}
    &lt;td class="delete"&gt;
        &lt;label style="color:Blue;cursor: pointer" data-type="${delete_type}" data-url="${delete_url}"&gt;Remove&lt;/label&gt;
    &lt;/td&gt;
    &lt;td&gt;
         &lt;select name="FileType" id="selFileType" onchange="javascript:return SelectedItems(this)"&gt;
                 &lt;option&gt;Estimates&lt;/option&gt;
                 &lt;option&gt;Invoices/ Receipts&lt;/option&gt;
                 &lt;option&gt;Photos&lt;/option&gt;
                 &lt;option&gt;Other&lt;/option&gt;
         &lt;/select&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;/script&gt;
</code></pre>
