Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

save text input to selectmenu

I need to save label and value of 2 textinputs to select menu
company name is label and company email is value

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

save text input to selectmenu

Hello! Please use JS on button Click. It should be something like this:

codevar newOption = '<option value=​"' + Tiggzi("mobiletextinput_email")&#46;val() + '">' + Tiggzi("mobiletextinput_name")&#46;val() + '<&#47;option>';
Tiggzi("mobileselectmenu")&#46;append(newOption)&#46;selectmenu('refresh');/code

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

save text input to selectmenu

Hi Marina,
I tried this, I altered code for components

var newOption = '' + Tiggzi("conametextinput").val() + '';
Tiggzi("taxicoselectmenu").append(newOption).selectmenu('refresh');

have I got it wrong,

cheers.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

save text input to selectmenu

sorry Marina,

this code

var newOption = '' + Tiggzi("conametextinput").val() + '';
Tiggzi("taxicoselectmenu").append(newOption).selectmenu('refresh');

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

save text input to selectmenu

sorry Marina,

this code

var newOption = ');

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

save text input to selectmenu

Hello! Not sure I understand your problem. Could you clarify please?
To post the code use code tag

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

save text input to selectmenu

Hi Marina,
this is the code I altered, no result

code

var newOption = '' + Tiggzi("conametextinput_name").val() + '';
Tiggzi("taxicoselectmenu").append(newOption).selectmenu('refresh');

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

save text input to selectmenu

Some inline codecode/code

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

save text input to selectmenu

I cant get this to show right code

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

save text input to selectmenu

Hello,
You can place your code between code tags or use pastebin.com

Return to “Issues”