HTML <input> d irname Atribut

❮ HTML tag <input>

Příklad

HTML formulář, do kterého bude odeslán směr textu pole:

<form action="/action_page.php">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname" dirname="fname.dir">
  <input type="submit" value="Submit">
</form>

Definice a použití

Atribut dirnameumožňuje zadání směru textu vstupního pole

Hodnota dirnameatributu je vždy název vstupního pole následovaný ".dir".


Podpora prohlížeče

Čísla v tabulce určují první verzi prohlížeče, která tento atribut plně podporuje.

Attribute
dirname Yes 79.0 Not supported Yes Yes

Syntax

<input name="myname" dirname="myname.dir">

Hodnoty atributů

Value Description
name.dir Specifies that the text direction of the input field will be submitted.

❮ HTML tag <input>