[jQuery] Re: .value= / .val()

2007-08-29 Thread Mike Alsup
> 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()

2007-08-29 Thread Enrico
thank you mike, for your answer...now i understand it. best wishes, Enrico