The Low Down
dirname attribute enables the submission of the directionality of the form control along with the value of the form control on form submission.
- When the user submits the form, the user agent will include two fields, the name / value pair and the dirname / direction. In the above example, the form will submit
foo=bar&foo.dir=ltrif we entered
baras the value.
- If the user manually switches to a right-to-left writing direction and enters something in Arabic, Hebrew or other, the value of
dirnameattribute is only relevant for the
searchinput types, and for