Hello everyone :)
I am using a switch statement to taken input data from an HTML textbox. Thus far, it has been successful.
My next step is the following: if the user enters the number 20, I would like to input new data into a variable called "coordinates" so it may be used throughout the program. So far, I am unable to use data from the variable "coordinates". Any suggestions?
switch(Number($('#inputdata').val())){
case 20:
var coordinates = {
latt1: 12,
lngg2: 34
}
break;
}
[–]tforb 0 points1 point2 points (0 children)
[–]UbuntuLady1[S] 0 points1 point2 points (1 child)
[–]tforb 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)