Input change event?

Faced with the problem, already tried all the events
PC - works correctly with the mobile is not working, someone tell me why?

<input type="text" name="test">

<img class="avatar" src="" alt="" />
<div class="box"></div>
<div class="bdate"></div>


$(document).ready(function(){
$('input[name=test]').on('input', function(){
 test = $(this).val();

$.ajax({
 url: 'https://api.vk.com/method/users.get?user_ids='+test+'&fields=photo_50&access_token=&v=5.92',
 dataType: 'jsonp', // type of transmission
 success: function(json) {
 $('.avatar').attr('src', json.response[0].photo_50); // avatar
 $('.box').html(json.response[0].first_name + '' + json.response[0].last_name); // get name
 $('.bdate').html(json.response[0].bdate); // birthday
}
});


});


});
March 19th 20 at 09:04
1 answer
March 19th 20 at 09:06
https://codepen.io/anon/pen/qverMW
I went to the phone, the event is definitely working
maybe it is Ajax from your phone somehow does not go away?
put something in
$.ajax({
...
error: function() { alert('wow error') } 
})

or as it was in jquery, I'm not sure, should be callback and mistakes, too
Thank you, understood. - rico.Eichma commented on March 19th 20 at 09:09

Find more questions by tags JavaScript