[jQuery] Re: .value= / .val()
> 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
[jQuery] Re: .value= / .val()
thank you mike, for your answer...now i understand it. best wishes, Enrico