[jQuery] Re: Can some one convert simple code to jQuery

2009-03-12 Thread Jean-Marie POISSONNIER
It doesn't work because [...@attr] selectors were removed in jQuery 1.3. http://docs.jquery.com/Release:jQuery_1.3#Changes You can write something like this : $("#follow_me").click(function() { $("input[name=article_id[]]").attr("checked", this.checked ? "checked" : "" ) })

[jQuery] Re: Can some one convert simple code to jQuery

2009-03-12 Thread FlashWebHost.com
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" wrote: > I want to check all check boxes. I made a search and made following > page > > http://nancy.bizhat.com/jquery_check_box.html >

[jQuery] Re: Can some one convert simple code to jQuery

2009-03-12 Thread FlashWebHost.com
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")

[jQuery] Re: Can some one convert simple code to jQuery

2009-03-12 Thread jezmck
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