oh i fixed it. its because i called that after getJSON and getJSON has not set the values yet. :)
On Apr 1, 2:46 pm, iceangel89 <iceange...@gmail.com> wrote: > i used .each to select all elements with id that starts with laLab > > $("*[id^=laLab]").each(function (i, obj) { > alert(obj.attr("value")); > > }); > > but i cant do obj.attr("value") nor obj.val(). why is this so? when i > alert(obj) its said i got HTML Input Element which is right