Tuesday 14 October 2014

Append the Data Base value to Tabular Form Select List

 Ajax(Application Process) used to Get the value from Data base Return value as node and attribute.
 Example : l_Opt_Xml.firstChild.nodeValue and l_Opt_Xml.getAttribute('value').

 Create the Element of OPTION
 Example : var l_Opt = document.createElement("option");

 Add the OPTION to Target Select List and Append the OPTION to Target Select List
 Example : pSelect.options.add(l_Opt); pSelect.appendChild(l_Opt);

 Insert the select list content to OPTION and Append the select list content to OPTION
 Example : l_Opt.innerText = pContent;
l_Opt.appendChild(document.createTextNode(pContent));

No comments:

Post a Comment