Checkout Radio Buttons Issue


I am running into an issue on radio box click event on our checkout page whereby if a customer clicks on the collection radio box then certain div's that we have created should hide. The problem is Customers are having to click twice on the radio button for the div's to hide. However  this is working fine in firefox but not in chrome or IE..  The javascript is clearly working as it is working fine in Firefox. Something is causing to prevent this from happening and

Here are the steps to recreate the issue

1) Visit
2) Click on a product page (i.e business cards) -
3) Click on a single orange price box and add the item to the cart
4) Proceed to checkout / delivery details
5) You will see that a particular delivery option is selected. Click on the blue "create account" button which will output the relevant sections the customer has to complete
6) If the ship method is preselected to delivery, click on the collection radio box and you will notice that the delivery section in the checkout form has not disappeared. Similarly if the preselected radio box is collection, click on a delivery option and you will notice that the delivery section in the form does not appear. Customer has to select this twice for it to work.

I have also posted a video related to the issue which can be found here:

I have test this on another set of radio boxes using the same code and it works so it is definitely not our code. Something is preventing our javascript from running on the first click. When clicking on the radio button again the script runs fine. What is causing this to not happen on the first click? Any ideas?

Thank you

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

There is no point in mt trying to work down through it and do diagnostics.  The markup is full of errors.

The validator reports 184 wrrors, some of which are serious structural error, incorrect tagging, and some around the form:

There is little point in trying to fix a page without first eliminating the probable causes of the instability that is caused by a Document object that was damaged when the parser tried to correct markup errors.  the fact that it does not work cross-browser re-inforces the idea that the validation errors need attention as the most common symptom of structural instability is that not all browsers can handle the code.

So I would recommend you address the validation issues first and se if your problem goes away.

Have you tried the latest version of Colorbox?

Based on this demo
We should not see the square button , we should see only the round one.
The square appear when we click on the close button.

Make a full backup and replace de JS and CSS file of colorbox to see if this fix it.

You can tried other set of button the example #5 seem better

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.