[jQuery] Re: Issue when caching jquery objects
Hi James,
this issue occured when I was using variables to store the objects.
Now I'm using a config object, and if I do something like this:
config.$myCachedSelector.attr('disabled', false);
it works...
Thanks
On 2 Nov., 20:15, James <james.gp....@gmail.com> wrote:
> Does:
>
> $myCachedSelector.removeAttr('disabled');
>
> work as expected?
>
> On Nov 1, 11:42 pm, north <ollo...@web.de> wrote:
>
> > Hi,
>
> > I usually cache jquery objects in variables or a config object.
>
> > Lately I ran into a strange issue with that when trying to do this:
>
> > $myCachedSelector.attr('disabled', false);
>
> > The selected object simply remained to be disabled.
>
> > When I used the normal syntax $('#mySelector').attr('disabled',
> > false); it worked.
>
> > I'm not sure if it's a problem with my script of some kind of "bug"?
>
> > Any ideas?
>
> > Thanks!
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home