thanks

On Apr 1, 6:00 pm, lukejackson <lukejacks...@gmail.com> wrote:
> .attr() and .val() are defined on the jQuery class, not the DOM
> element.
>
> Try $(obj).attr("value") or obj.value instead
>
> 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

Reply via email to