Hello everyone,
I am creating a dynamic table with textbox and multiple images by input type file.
- function handleFileSelect(e) {
- selDiv = document.querySelector("#dvPreview");
-
- for (var i = 0; i < fileList.length; i++) {
- selDiv.innerHTML += "<tr><td><img src=" + objectUrl + " /></td><td><input id='txtImgdescription' type='text'/></td><td><input class='check_class' type='checkbox'/> <a onclick='delete_user($(this))'> X </a></td></tr>";
- }
I want image description from textbox with respect to corresponding image. So I have done, after bind the table on .cshtml page there is model class, the I can not the value from view to controller.
I did tried write textbox like model=>model.Imgdescription
- <input id='txtImgdescription' type='text'/>
instead of
- <td>@Html.TextAreaFor(model=>model.Imgdescription)</td>
but nothing happened. Then view look like this,
Please help me...