I know I can get the \"value\" attribute of a radiobutton but I\'m finding it strangely difficult to get the text of the radiobutton.
Consider the example below. It has
It doesn't work because there is no such thing as text inside an like that -- that's illegal in XHTML. It must be:
apple
Then you can look for the text inside the .