UserAgent Example Example on how to switch from Bootstrap's datepicker when on a desktop machine. To a normal HTML5 date input when on an a mobile device. References DETECTING A MOBILE BROWSER WITH JAVASCRIPT Browser detection using the user agent