Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
Getting a null value of input fields on mobile, but getting value on desktop

I am setting some values of input fields in local storage through JavaScript, it is working fine on desktop but when i check it on mobile i am getting null values.

Here is my code:

function reserve() {
  let date = document.getElementById("start").value;
  alert(date)
}
<input type="date" class="date" id="start" placeholder="Move Date">
<a href="/request"><input type="button" name="" value="Reserve Now" onclick="reserve()"></a>

Now i am getting null on mobile but get a value in alert on desktop.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!