Difference between revisions of "All Teams Info"

Line 27: Line 27:
  
  
<select>
+
<select id="team_list">
  <option value="volvo">Volvo</option>
+
 
  <option value="saab">Saab</option>
+
  <option value="mercedes">Mercedes</option>
+
  <option value="audi">Audi</option>
+
 
</select>
 
</select>
  
Line 130: Line 127:
  
 
 
 +
 +
//generate team list
 +
 +
var clean_name;
 +
 +
for (x=0; x< all_teams_info.length; x++){
 +
 +
clean_name = (all_teams_info[x].team_name).replace(/ /g, "_");
 +
 +
$("#team_list").append("<option value='"+clean_name+"'>"+all_teams_info[x].team_name+"</option>");
 +
 +
}
  
 
 

Revision as of 17:57, 4 September 2019

Loading...

All teams info