Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get xml data & append to selectbox
- $.ajax({
- type: "GET",
- url: "test.xml",
- dataType: "xml",
- success: function(xml){
- $(xml).find('ReportOptions').each(function() {
- var cNum = $(this).find('cusipnum').text(); // assign vars to incoming data
- $('#cusip').append('<option>'+cNum+'</option>'); // append data to options
- });
- $('#cusip').multiselect('refresh');
- },
- error: function (xhr, ajaxOptions, thrownError) {
- alert("Error Status:"+xhr.status+", "+thrownError);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement