I want to detect if user has changed the type of some input from <input type="password">
to <input type="text">
or else to put it again on <input type="password">
.
The idea is to prevent the user from changing the type. Here is my idea or if you have something else Iam interested.
My code:
jQuery(('.input_class').attr('type').val()).live('change', function(){
alert('the type is changed');
jQuery('.input_class').prop('type', 'password');
});