Hello!
I would be grateful if you guys could enlighten me why this script works in other browsers, but fails in chrome.
It's just supposed to alert a name depending on the fruits you've chosen.
Forgot to mention, it returns 'undefined' instead of the fruit value.
The value of a radio button group can be read by looping through the elements (you can research that). There is no need to use onclick events and setting the value of a radio button group is an illegal operation so cannot be expected to work.
The javascript: pseudo protocol should never be used, you can research why.
Here's a fix for your code that keeps the onclick events to set a hidden field:
this is not regularly but some time i always used in script in chrome. i think its work. But i will again try it. Thanks for your brilliant information
Bookmarks