The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Disable script if device has input type=”date” support?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #38623
    Andy Howells

    Hi all,

    Does anyone know of a way that I can effectively disable or unload a script if input type=”date” is supported?

    I’m doing a design right now that I’m using datepicker.js for a dropdown to select a start and finish date for staying at a country house.

    However, I would like to use the built in date picker that comes on iOS and other browsers.

    Is there a way to disable the javascript that creates the drop down gallery if the device supports input type=”date” natively?

    Linky here: Contact Page


    Instead of disabling a script, why not use Yepnope.js to load the script if needed.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.