> Why i must use the .val() function? Because "value" is not a property on the jQuery object. It is a property on the DOM element.
// use jQuery "val" method: $("#city").val($("city", xml).text()); // use DOM element "value" property: $("#city")[0].value = $("city", xml).text(); Mike