Hi Rob, thank you for your quick reply!
> Add a return statement to getPrice, maybe something like: > > function getPrice(id) { > return $.get('db.xml', function(d){ > ... > }); I am sorry to say that this only return a XMLHttpRequest but not the value of the variable price. Kind regards Tom