VAR OBJ;
Function Change (Prime, Slave, Price)
{
Var obj = document.all.xmldata.xmldocument.childNodes [0] .selectsinglenode ("DSTREE1 [@ID = /" prime.value "/"] ");
With (slave) {
Varleth = 0;
For (i = 0; i { Options [Length ]. Text = Obj.childNodes [i] .GetaTRibute ("text"); Options [length-1] .value = obj.childnodes [i] .getattribute ("ID"); Price.Value = Obj.childNodes [i] .getattribute ("Price_buy"); } οNCHANGE = function () // Add control event method { Price.Value = obj.selectsinglenode ("DSTREE2 [@ID = /" " slave.value " / "]"). GetAttribute ("Price_buy"); } Options [length-1] .selected; // Set the default value Onchange (); // Trigger event } } script> hEAD>
Product Specifications: select> unit: select> price: td> tr> table> body> html> Dstree1> Dstree1> Dstree1> Dstreeroot> xml>
转载请注明原文地址:https://www.9cbs.com/read-98301.html New Post(0)
|