Is it possible to disable textarea's multiline option?
Of course, I can use standard html text box, but I need text area for some reason. So, is it possible to disable textarea's multiline option? You can set the size of your textarea using the cols and rows attributes and make it non-resizable in CSS but you can't prevent the user from adding more than one line. Even if the area is just too small, a scrollbar will appear and let them write as many lines as they want. If you really need to get just one line, I suggest setting the rows attribute to 1 and checking if the input has a single line with Javascript. In html: <textarea name="a" cols="5"