Eric Brouwer
Posts: 0
Joined: Thu Aug 30, 2012 10:31 am

Radio button set text

Hi all,

I did try to set the text on a radio button. But when i set the text the radio button is not there anymore. Instead you see just plain text.

How can you set the text on a radio button and keep the radio button function?
Also i use some radio buttons as horizontal and some as vertical.

I did try the following code without success

Tiggzi('mobileradiobutton19').text('geleidelijk').controlgroup("refresh");

also when i do this the format goes from horizontal to vertical

or

Tiggzi('mobileradiobutton19').text('geleidelijk').refresh();

I did read the help section. But i am sorry to say I did not found an answer.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Radio button set text

Did you try the docs at http://jquerymobile.com/demos/1.2.0/d...? You can also try stackoverflow.com.

Eric Brouwer
Posts: 0
Joined: Thu Aug 30, 2012 10:31 am

Radio button set text

Thanks for the quick reply.

I guess I will do it differently, This is getting to complicated for me. I am New to this and a complete noob.

I am making a questionnaire.
and the text need to be in different languages, depending what is selected

so what i try to do is on the load event of the screen

var Lang = localStorage.getItem('Language');
if (Lang == 'Dutch'){

}
if (Lang == 'English'){

}

depending on the value of the local storage, the text need to be changed on the existing radio button.

I did look at the suggested sites. However i do not see how to implement this with what i want to do.

Also I need to save the value from the radio button to local storage
and at later time i need to read the value from the local storage and set that value of the radio button.

Anyway thanks for your reply
I guess as this is getting to complicated for me i just have to solve this with labels or buttons

Return to “Issues”