Skip to content Skip to sidebar Skip to footer

Jquery - Copying An Input To A Div With Keyup Paste, Having An Issue With Autofilled Data

I am using ('keyup paste', function() to fill a
, but I do not know what to do when someone uses autofill. Also I am using cookies for a previous visitors that filled ou

Solution 1:

Try this:

$(function () {
     $('#Website').on('keyup blur paste', function() {
    var self = this;
    setTimeout(function() {
      var str = $(self).val();
      $("#viewer").text(str.replace(/^http\:\/\//, ''));
    }, 0)
    })
});

Post a Comment for "Jquery - Copying An Input To A Div With Keyup Paste, Having An Issue With Autofilled Data"