When a user adds a row in a table, it should display the input "file" feature under the "Image" column for each row so that the user can select a file for each row. But it does not display the file input within the row when I add a row.
Below is the html code:
   <table id="qandatbl" border="1">
    <tr>
        <th class="image">Image</th>
    </tr>
    </table>
Below is jquery code
function insertQuestion(form) {   
        var $tr = $("<tr></tr>");
        var $image = $("<td class='image'></td>");
        function image(){
        var $this = $(this);
        var $imagefile = $("<input type='file' name='imageFile' id='imageFile' />").attr('name',$this.attr('name'))
                         .attr('value',$this.val())
            $image.append($imagefile);
        };
        $tr.append($image);
        $('#qandatbl').append($tr);
    }
 
     
     
     
    