I've identified the exact same problem today. Although this could, in
theory, be moved to a click event, this will reduce accessibility
support - e.g. keyboard users will no longer see the same behaviour.
- Bobby
On Jul 3, 12:42 am, James wrote:
> What if you change the whole thing to:
>
> $("#
What if you change the whole thing to:
$("#almond_cake").click(function() {
if ($(this).is(':checked'))
// do something
else
// do something else
});
On Jul 2, 10:00 am, Shiro wrote:
> Hi James,
> I changed the code from:
>
> $("#almond_cake:checked").val() == 'on')
>
>
Hi James,
I changed the code from:
$("#almond_cake:checked").val() == 'on')
to:
if ($("#almond_cake").is(':checked'))
to check to see if the radio button is checked. This works in firefox
but in IE it takes a second click for it to work for some reason.
Thanks!
On Jul 2, 12:49 pm, James w
Here:
$("#almond_cake:checked").val() == 'on')
You're checking for the value 'on', but you're setting value="x"?
If you're using that condition, your HTML should look like this:
See if that works.
(And you don't need a closing tag. It's not valid HTML.)
On Jul 2, 7:45 am, Shiro wrote:
> H
Hi,
I changed it to the following:
$("#flavors input[name=cakes]").change(function(){
if ($("#almond_cake").is(':checked')) {
$("#wrapper_almond").show();
$("#pic_almond").show();
} else {
$(
Can you try the change event instead of click?
Bharat
6 matches
Mail list logo