1

How to add multiple lines. I am only getting a field for one line.

 <label htmlFor="materialrequired">Material Required</label>
            <input
              type="text"
              id="materialrequired"
              name="materialrequired"
              placeHolder="Material Required..."
              value={materialrequired || ""}
              onChange={handleInputChange}
     
            />
3
  • Your question is not very clear? What do you want to do? Commented Apr 5, 2022 at 7:46
  • When i type into this field now it is only one line and it does not allow me to add multiple lines. I want to be able to add more lines. Commented Apr 5, 2022 at 7:50
  • 1
    As suggested by @MamunurRashid you should use textarea Commented Apr 5, 2022 at 8:08

1 Answer 1

2

Example of creating a multi-line input field:

 <textarea rows="5" cols="60" name="text" placeholder="Enter text"></textarea>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.