Nilesh Patel wrote:
> hey, try below plug ins
>
> $.fn.checkedZ = function() {
> return this.each(function(){
> this.checked = true;
> });
> }
>
> $.fn.uncheckedZ = function() {
> return this.each(function(){
> this.checked = false;
> });
> }
>
You could even add a toggle plugin:
$.fn.checkToggle = function() {
return this.each(function() {
this.checked = !this.checked;
});
}
Or rewrite it like this:
$.extend({
check: function() {
return this.each(function(){
this.checked = true;
});
},
uncheck: function() {
return this.each(function(){
this.checked = false;
});
},
checkToggle: function() {
return this.each(function() {
this.checked = !this.checked;
});
}
});
Just my 3 cents :-)
-- Jörn
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/