switching from input field to textarea on ASP.NET failure

Viewed 24

I am using this input field:

            <div class="form-group">
                <label asp-for="JobDescription" class="control-label"></label>
                <input asp-for="JobDescription" class="form-control" />
                <span asp-validation-for="JobDescription" class="text-danger"></span>
            </div>

I am trying to switch from input to textarea as it has to be lots of text inside, but it fails to create it successfuly.

When i switch it to this:

            <div class="form-group">
                <label asp-for="JobDescription" class="control-label"></label>
                <textarea asp-for="JobDescription" class="form-control" rows="20" cols="70"/>
                <span asp-validation-for="JobDescription" class="text-danger"></span>
            </div>

It just freaks out and the page doesn't load properly. It creates the textarea, and places the rest of the code INSIDE the textarea.

What am I doing wrong here? input works great but has just a single line and i need a textarea for that purpose.

Kind regards

0 Answers
Related