'Laravel LocalStorage getItem returning null
I'm having some trouble retrieving values from localStorage. I'm trying to get item from this :

My input :
<input type="text" name="kd_lokasi2" id="kd_lokasi_kasir">
<input type="text" name="kd_shift2" id="kd_shift_kasir">
My script :
document.getElementById("kd_lokasi_kasir").innerHTML = localStorage.getItem("kd_lokasi");
document.getElementById("kd_shift_kasir").innerHTML = localStorage.getItem("kd_shift");
And use @kd_lokasi_kasir = '".$request->kd_lokasi2."' and @kd_shift = '".$request->kd_shift2."' on my controller. It not working.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

