HTML <input> dirname Attribute
Definition and Usage
dirname
Attribute enables the submission of the text direction of the input field.
dirname
The value of the attribute is always the name of the input field followed by ".dir".
Example
Submit HTML form field text direction:
<form action="/action_page.php"> <label for="fname">Name:</label> <input type="text" id="fname" name="fname" dirname="fname.dir"> <input type="submit" value="Submit"> </form>
Syntax
<input name="myname" dirname="myname.dir">
Attribute Value
Value | Description |
---|---|
name.dir | Specifies the text direction of the input field to be submitted. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | 79.0 | Not Supported | Supported | Supported |