Javascript Reference
Categories: SELECT

javascript SELECT dataFld

@March 15, 2008, 1:22 a.m.
dataFldFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

Read/Write  

Used with IE data binding to associate a remote data source column name with the selectedIndex property of the select object. A datasrc attribute must also be set for the element. Setting both the dataFld and dataSrc properties to empty strings breaks the binding between element and data source. Works only with text file data sources in IE 5/Mac.

 
Example
 
document.forms[0].mySelect.dataFld = "choice";
 
Value

Case-sensitive identifier of the data source column.

 
Default

None.


Powered by Linode.