Closed manolo-alvarez closed 4 years ago
const attribute2 = document.createElement('a');
attribute2.setAttribute('class', 'card-text mb-auto'); attribute2.setAttribute('href', 'state_overview.html'); attribute2.setAttribute('onclick',
f1("${senators[j].state}"));
function f1(state){ localStorage.setItem('state', state); }
trying to link the politician model to location model. specifically the state_overview of said politician.