Google Chrome is 'auto-completing' passwords into DataTable search bars... help!

Google Chrome is 'auto-completing' passwords into DataTable search bars... help!

David@QuantumDavid@Quantum Posts: 36Questions: 4Answers: 2

Good Monday Morning all!

My week is off to a meh start with the discovery that Google Chrome is pasting login details in plain-text into DataTables search bars!! :worried: I've got about 6 DT tables in one page and need to come up with a relatively simple solution to set the autocomplete attribute for each of these search bars to off. Anyone got any thoughts on how best to do this?

Cheers,
David

This question has an accepted answers - jump to answer

Answers

  • David@QuantumDavid@Quantum Posts: 36Questions: 4Answers: 2

    My research has gotten me this far:

    $('input[type="search"]').each(function(){
        $( this ).attr('autocorrect', 'Nope'); //Chrome seems to ignore 'off' and 'false'
    });
    

    Apparently Chrome is awful with the conventions for this and will ignore most settings for the autocorrect attribute however.

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    Hi @David@Quantum ,

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

This discussion has been closed.