Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return a string made up of a couple elements

Status
Not open for further replies.

tekkerguy

Programmer
Nov 16, 2005
196
US
how do I write code that returns two elements, separated by a delimiter, to be parsed later?

i.e.

var combstring = document.getElementById('id1')$document.getElementById('id2')

but what's the proper way to write it?

something like var combstring = document.getElementById('id1') + "$" + document.getElementById('id2')?

 
Code:
var x = document.getElementById("someid").value;
var x += ","+document.getElementById("someid2").value;

something like that
 
Hi

... but without the second [tt]var[/tt].
Code:
var x = document.getElementById("someid").value;
[s][red]var[/red][/s] x += ","+document.getElementById("someid2").value;

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top