blair, thank you. this however doesn't seem to work in firefox on a mac - it
doesn't show the check in the checkbox. it functions right, it just doesn't
actually show a check when you click on it, i'm assuming because .click is
overriding it. if i change it .change(function()... it works on the page,
but it doesn't work if you check the box, and hit refresh (which it's also
got to do).
any ideas? your code has been implemented on bdm.twothirty.com.




Blair McKenzie-2 wrote:
> 
> The reason is that you are only checking on document ready. You need to
> add
> a check when the check is clicked as well:
> 
> $(document).ready(function(){$("input#list-one-subscribe").click(function()
> { if ($(this).is(":checked")){
> $("div.blurb").show();
> $("label#add-a").show();
> }
> else {
> $("div.blurb").hide();
> $("label#add-a").hide();
> }
> return false;
> }).click();
> });
> 

-- 
View this message in context: 
http://www.nabble.com/when-checkbox-is-checked-tf2556804.html#a7136399
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to