What do you mean by overriden? Just copied your code over and it seems to work fine.
http://jsbin.com/efeje http://jsbin.com/efeje/edit - ricardo On Feb 10, 3:07 pm, Thomas Allen <thomasmal...@gmail.com> wrote: > Here's my JS:http://pastebin.com/m6091a365 > And the accompanying HTML:http://pastebin.com/m30c57ea6 > > For some reason, the if($("pay_..." condition that comes first gets > overridden by the one that follows it. The :checked states you see in > the JS are mutually exclusive because they are a part of the same > radio group (as seen in the HTML). The showCC and showCheck functions > work perfectly in the focus() context (they switch normally). > > The reason that I'm setting this up this way is so that a user will > only see the payment region that they need to see. > > Thanks, > Thomas Allen