A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/attributes/dataFld below:

dataFld · WebPlatform Docs

dataFld Summary

Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.

## Examples

In this example, a text box is bound to the flavor field supplied by a data source object with an ID of ice_cream. Because the text box is contained in a table, it is repeated, and all values in the flavor column are displayed.

<table datasrc="#ice_cream">
   <tr><td><input type="textbox" datafld="flavor"></td></tr>
</table>

In this example, the select object is bound to the card_type column of a data source control with an ID of order. The value of the field in the data set determines the option that is initially selected. When the user selects a different option from the select, the value of the card_type field in the current record of the data set is updated.

<select datasrc="#order" datafld="card_type">
   <option>Visa
   <option>Mastercard
   <option>American Express
   <option>Diner's Club
   <option>Discover
</select>
Notes Remarks

The dataFld property is not available on param objects; use getAttribute(‘dataFld’) instead.

Syntax See also Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4