Hi,
I have the value from the select box as
<select name="somename">
<option value="123,myname,mynumber">Myself</option>
</select>
How can I spilt the value="123,myname,mynumber" into 3 variables using javascript. All I know is that the "somename" has 3 information separated by comma. Although I donot know the exact position of the comma.
var1 = 123
var2 = myname
var3= mynumber.
Thanks
I have the value from the select box as
<select name="somename">
<option value="123,myname,mynumber">Myself</option>
</select>
How can I spilt the value="123,myname,mynumber" into 3 variables using javascript. All I know is that the "somename" has 3 information separated by comma. Although I donot know the exact position of the comma.
var1 = 123
var2 = myname
var3= mynumber.
Thanks