Wednesday, February 16, 2011

Rails radio buttons and javascript issues

One of the application I was working on was having radio buttons which needed a javascript

onClick function. Rails radio_button_tag behavior was strange. That was not even giving javascript alert. Did some Google Search but failed.

At last I have to add the simple and pure html code for radio button. As that was going to work 100%.

Strange as I have added javascript to checkboxes, select_tag in rails code and it also worked, but didn't able to find solution to add javascript in radio_button_tag.


No comments:

Post a Comment