[jQuery] Re: toggle and checkbox

2007-09-28 Thread Michael McDaniel
Here is a little extension I wrote for jquery to do disabling: jQuery.fn.extend({ filterHasDisabled : function(){ return this.filter(function(){return (typeof(this.disabled)!=undefined)})}, disabled: function(h) { if (h!=undefined) return this.filterHasDisabled().each(function(){this.di

[jQuery] Re: toggle and checkbox

2007-09-28 Thread mmcdaniel
Here is a little extension I wrote for jquery to do disabling: jQuery.fn.extend({ filterDisabled : function(){ return this.filter(function(){return (typeof(this.disabled)!=undefined)})}, disabled: function(h) { if (h!=undefined) return this.filterDisabled().each(function(){this.disable

[jQuery] Re: toggle and checkbox

2007-09-25 Thread Glen Lipka
I had made a little checkbox demo a while back. Doesn't do everything you want, but it might help. http://www.commadot.com/jquery/checkboxes.php Glen On 9/24/07, Matt <[EMAIL PROTECTED]> wrote: > > Hi, > > I would do : > $('#myfield').attr('disabled', 'disabled'); // disabled > $('#myfield').attr

[jQuery] Re: toggle and checkbox

2007-09-25 Thread Matt
Hi, I would do : $('#myfield').attr('disabled', 'disabled'); // disabled $('#myfield').attr('disabled', ''); // enabled, i guess Matt > 2007/9/24, sheetzam <[EMAIL PROTECTED]>: > > > Using jquery 1.2.1 toggle: > > jQuery().ready(function(){ > $('#multiple').toggle( > function(){ >