Thanks all, i got it fixed now by removing @ from the beginning name=

$("input[name='article_id[]']").each(function(){



On Mar 12, 9:32 pm, "FlashWebHost.com" <flash...@gmail.com> wrote:
> I want to check all check boxes. I made a search and made following
> page
>
> http://nancy.bizhat.com/jquery_check_box.html
>
> When check box near "Check All" clicked, i need all other check boxes
> get checked.
>
> Now it is not working, the problem seems with the selection with $
> ("inp...@name=article_id")
>
> Can anyone tell why it is not working ?
>
> On Mar 12, 4:11 pm, jezmck <j...@powder-blue.com> wrote:
>
> > It looks like that code does more than simply check a single box.
>
> > It would be helpful to explain in more detail what you actually need
> > it to do.
> > And include the relevant HTML if possible.
>
> > There is a lot of jQuery checkbox code out there, so go Googling, and
> > don't expect people to just write your code for you if it's simple.
>
> > On Mar 12, 10:38 am, "FlashWebHost.com" <flash...@gmail.com> wrote:
>
> > > Can some one convert following code to jQuery ?
>
> > > function check(value)
> > > {
> > >         x = document.bulk_import.elements.length;
> > >         for(i=0;i<x;i++)
> > >     {
> > >                 if(document.bulk_import.elements[i].name == 
> > > 'article_id[]')
> > >         {
> > >                         document.bulk_import.elements[i].checked = value;
> > >                 }
> > >         }
>
> > > }
>
> > > The function is used to check/uncheck all check box.

Reply via email to