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.


source to share

1 answer

Problem solved

onBlur runs on iOS (Safari, iCab)

Test 1

function test(test) {
<input type="date" onblur="test()" />


Test 2

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




All Articles