Skip to content

Password Input Values #3363

@juninhodeluca

Description

@juninhodeluca

Description

Is this the right behavior for input type password?

<input type="password" id="password" />
<input type="text" id="showPassword" />

    $('#password').change(function(e){
        $('#showPassword').val($('#password').val());
    });

I mean... I can't copy and past from inputs of type password into a notepad, but jQuery can show it.
I know about security issues in this case, but the point is... should jQuery handle password values?

Sorry my bad english and sorry if is a idiot point.

Regards.

Link to test case

https://jsfiddle.net/hLz169fg/4/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions