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" : "" )
})
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
>
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")
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
4 matches
Mail list logo