老问题,快来帮忙解决。检索xml!
mgwms 2003-05-22 12:17:58 xml文件如下:
<root>
<rows Product_Id="1" Product_Code="ISBN: 1-58861-075-6" CEPC_No="ISBN: 1-58861-075-6" Product_Name="AAPG Bulletin on CD1990-1999"/>
<rows Product_Id="2" Product_Name="AAPG Data_ROM 1993: More than 400,000 well records on a CD-ROM:"/>
<rows Product_Id="3" Product_Name="The Arabian Plate: Producing Fields and Other Undeveloped Hydrocarbon Discoveries (1991). (Digital Map)"/>
<rows Product_Id="4" Product_Code="1-58861-179-5" CEPC_No="1-58861-179-5" Product_Name="Petroleum Basins of South America"/>
<rows Product_Id="5" Product_Name="Bally Seismic Atlas Series:Seismic Expression of Structural Styles, Studies in Geology 15 (3 vols., 1 disc)"/>
<rows Product_Id="6" Product_Name="Combined Index on CD-ROM (2000 edition)."/>
<rows Product_Id="7" Product_Name="Gulf of Mexico Type Well File"/>
<rows Product_Id="8" Product_Name="International Developments in Exloratory Drilling(AAPG) 1950-1990"/>
</root>
问题:
请用javascript实现如下功能:
页面有一个textbox 和一个select 控件:
根据textbox的值来查询,结果添加到select 控件中。
如:textbox的值为:a ,把所有的Product_Name 以a开头的行添加到select 中