|
Thanks
Dave and Mike J I’m definitely not
a jquery/jscript expert L I played with it a bit more and came up with: $(document).ready(function(){ $(".magazineCheckBox").showHideComment(); }); $.fn.showHideComment
= function(){ var show = true; this.click(function(){ var mag
= this.id; if(!this.show){ $("div."+mag+"_div").show("normal"); }
else { $("div."+mag+"_div").hide("normal"); } this.show = !this.show; }); }; Works in firefox and IE. Yay. now I can just add a class to my input
boxes to make it a bit more unobtrusive J thanks for the foot in the right direction. Chris // guess I’m only a spud
boy |
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
