
Sign up to save your podcasts
Or


How do you feel about setting your request values right there inline?
STATIC
hx-trigger="click"
hx-vals='{"location": "01245"}'>
Click for weather in one static location
DYNAMIC
hx-trigger="click"
hx-vals='js:{location: document.getElementById("zipcode").value}'>
Click for weather in one static location
OR
hx-trigger="click"
hx-vals='js:{location: someJavascriptCalculationFunction()}'>
Click for weather in one static location
By Lazarus5
66 ratings
How do you feel about setting your request values right there inline?
STATIC
hx-trigger="click"
hx-vals='{"location": "01245"}'>
Click for weather in one static location
DYNAMIC
hx-trigger="click"
hx-vals='js:{location: document.getElementById("zipcode").value}'>
Click for weather in one static location
OR
hx-trigger="click"
hx-vals='js:{location: someJavascriptCalculationFunction()}'>
Click for weather in one static location