Özellik için HTML <output>
Örnek
Bir hesaplama yapın ve sonucu bir <output> öğesinde gösterin:
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" id="a" value="50">
+<input type="number" id="b" value="25">
=<output name="x" for="a b"></output>
</form>
Tanım ve Kullanım
Nitelik for
, hesaplamanın sonucu ile hesaplamada kullanılan öğeler arasındaki ilişkiyi belirtir.
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Attribute | |||||
---|---|---|---|---|---|
for | 10.0 | 13.0 | 4.0 | 7.0 | 11.5 |
Sözdizimi
<output for="element_id">
Özellik Değerleri
Value | Description |
---|---|
element_id | Specifies a space separated list of ids of one or more elements that specifies the relationship between the result of the calculation, and the elements used in the calculation |
❮ HTML <output> etiketi