Javascript Reference
Categories: DIV

javascript DIV 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 to a div element's content. 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 for text data sources in IE 5 for the Macintosh.

 
Example
 
document.getElementById("myDiv").dataFld = "comment";
 
Value

Case-sensitive identifier of the data source column.

 
Default

None.


Powered by Linode.