Html5 native datapicker, on change

I have a list item in a mobile app with a search field and a date field. But I can't get my function to run when I change the date to a native HTML5 datepicker on iOS.

I tried jq's change () and on function. ('input') but doesn't work.

+3


source to share


1 answer


Problem solved

onBlur runs on iOS (Safari, iCab)

Test 1



<script>
function test(test) {
    alert("trigged");
}
</script>
<input type="date" onblur="test()" />

      

Test 2

jQuery("input[name=date]").blur(function() { alert("hi"); });

      

+1


source







All Articles