Base solution for your next web application
Open Closed

Suggest input field for multiline input #5151


User avatar
0
manojreddy created

I have a requirement in which User can enter multiline input, Could you please suggest any input which can be useful in this case which is supported by Asp.Net Core framework.

Requirement:

The user has to enter ingredients details. So it can be like 1 spoon sugar, 1-liter milk, 1.5-liter water and so on. So for this example, there are 3 input fields. It can be any number.

Right now I'm using TextArea (User enters each ingredient in the new line ), But it doesn't look good. So there any better way to this?


3 Answer(s)
  • User Avatar
    0
    manojreddy created

    Any updates, please?

  • User Avatar
    0
    bbakermmc created

    This inst specific to ASPNetZero. We would create a single input box and add a + to allow for infinite number of items. Then pass this as as a list of items to controller and loop thru list to add to db as per row, or whatever youre trying to do from here.

  • User Avatar
    0
    alper created
    Support Team

    hi,

    You can implement add/remove input with JQuery. <a class="postlink" href="https://www.sanwebe.com/2013/03/addremove-input-fields-dynamically-with-jquery">https://www.sanwebe.com/2013/03/addremo ... ith-jquery</a> [attachment=0:6ur375bd]add-remove-fields.jpg[/attachment:6ur375bd]