A quick note to any/all web developers out there who read our Code Logic posts:
After battling a weird bug that we couldn’t quite find in Google Chrome, we thought we’d share a little inside information to help you save some time and headaches. While Firefox and other browsers were responding to a call we were making, Chrome just wouldn’t bind the right information to an onclick event. Granted, it was on an element that we don’t usually bind events to, but still.
The element in question was an <option>. Inside of a select box, we had two groups of data and wanted a hidden form field to be updated to a certain value when you choose an option from group A, and a different value when you choose an option from group B. It worked great in other browsers, but not in the latest build of Chrome for Windows.
Just a heads up. Hopefully now you don’t need to lose a bunch of time because your JavaScript isn’t working.
Tags: Google, JavaScript



