Page 1 of 6

save text input to selectmenu

Posted: Mon Jan 14, 2013 11:52 am
by Michael4771079

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

Image


save text input to selectmenu

Posted: Mon Jan 14, 2013 12:34 pm
by Maryna Brodina

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


save text input to selectmenu

Posted: Mon Jan 14, 2013 2:22 pm
by Michael4771079

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.


save text input to selectmenu

Posted: Mon Jan 14, 2013 3:19 pm
by Michael4771079

sorry Marina,

this code

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


save text input to selectmenu

Posted: Mon Jan 14, 2013 3:23 pm
by Michael4771079

sorry Marina,

this code

var newOption = ');


save text input to selectmenu

Posted: Tue Jan 15, 2013 12:03 pm
by Maryna Brodina

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


save text input to selectmenu

Posted: Wed Jan 16, 2013 3:49 pm
by Michael4771079

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

code

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


save text input to selectmenu

Posted: Wed Jan 16, 2013 3:51 pm
by Michael4771079

Some inline codecode/code


save text input to selectmenu

Posted: Wed Jan 16, 2013 3:52 pm
by Michael4771079

I cant get this to show right code


save text input to selectmenu

Posted: Wed Jan 16, 2013 5:09 pm
by Kateryna Grynko

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