So I have two html browsers (index.html and results.html) that should link to one another. Based on the answer the user selects from a drop-down menu on the index.html, the page should direct to results.html - meaning that the results of the page may differ depending on the user selection. How and where do I use jQuery to show this?
For more project details - User should select a location from a drop-down menu on index.html and will then show certain restaurants in that selected area in another page. All possible results are in one results.html with elements that are hidden. The below is the jQuery logic, but how can I make sure the code I am writing for index.html will link to results.html?
jQuery:
if (selectLocation == "Harlem") {
$('body').removeClass().addClass('harlem');
} else if (city == "Upper West Side") {
$('body').removeClass().addClass('uws');
} else {
$('body').removeClass();
}
EDIT: changed html browser to html page (new coder here!)