Checkout Radio Buttons Issue

Hi.

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 cheapasprints.com
2) Click on a product page (i.e business cards) - http://cheapasprints.com/shop/category/cheap-350gsm-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: http://screencast.com/t/UWKjcm0B

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

Umar
LVL 1
ACEAFTYAsked:
Who is Participating?
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.

COBOLdinosaurCommented:
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:

http://validator.w3.org/check?uri=http%3A%2F%2Fcheapasprints.com%2Fshop%2Fcategory%2Fcheap-350gsm-business-cards%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

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.

Cd&
0
lenamtlCommented:
Have you tried the latest version of Colorbox?
https://github.com/jackmoore/colorbox

Based on this demo
http://www.jacklmoore.com/colorbox/example1/
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
http://www.jacklmoore.com/colorbox/example5/
0

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
AJAX

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.