Totally new to this!
Trying to fill an extra 2 textboxes with additional information after I have selected from a dropdown box.
The dropdown box comes from a .xml file
Sample Attached
My Coding so far
Using jQuery and XML to populate a drop-down box demo <script>
$(document).ready(function(){
$.ajax({
type: "GET",
url: "Test.xml",
dataType: "xml",
success: function(xml) {
var select = $('#mySelect');
$(xml).find('tbl_PDC_InstrWEB_Export2').each(function(){
$(this).find('Name').each(function(){
//$('Name', xml).each(function(){
var value1 = $(this).text();
select.append("<option class='ddindent' value='"+ value1 +"'>"+value1+"</option>");
});
});
select.children(":first").text("Select PDC Student").attr("selected",true);
} //sucess close
});
});
</script>
</head>
<body>
<h2>PDC Student Listing</h2>
<img src="My_Logo.jpg" alt="Logo Here" width="80" height="80"/>
<input name="Text1" type="text" />
<div id="page-wrap">
<select id="mySelect">
<option>loading</option>
</select>
</div>
</body>
Just cannot get the 2 textboxes working
Can someone assist?