Morning All!! I am still new to coding and learning very fast (will be teaching computer science this fall). I am creating an app for a class I am taking and I need help because I am lost!!
I have it set up that are searching colleges that are either under or over $25,000 a year in tuition and I have a data set where I have 3 columns (college, price, students). I am using a drop down to select the college and I want the other 2 columns to auto populate in the text box areas but I have no clue what the coding is. I have spend hours looking online to figure out how and I am just missing something!! Any help would be appreciated!!
Here is what I have:
readRecords(“under25k”, {}, function(records) {
var college_list = ;
for (var i=0; i < records.length; i++) {
appendItem(college_list, records[i].college);
}
setProperty(“dropdownU”, “options”, college_list)
});
readRecords(“over25k”, {}, function(records) {
var college_list = ;
for (var i=0; i < records.length; i++) {
appendItem(college_list, records[i].college);
}
setProperty(“dropdownO”, “options”, college_list)
});
I have this as well but I know it is not correct because I have changed it a 1,000 times!! lol
onEvent(“dropdownU”,“change”, function(event){
readRecords(“under25K”, {name:getProperty(“dropdownU”,“text”)}, function(event){
var price_list = ;
for (var i=0; i < records.length; i++) {
appendItem(price_list, records[i].price);
}
setProperty(“price1”,“text”, price_list)
});
HELP!!
here is my app: